极客时间返利平台,你可以在上边通过山月的链接购买课程,并添加我的微信 (shanyue94) 领取返现。
每天晚上九点 B站讲解前端工程化直播,并解答相关问题。

# 如何评估一台服务器的 CPU 性能

Issue

欢迎在 Gtihub Issue 中回答此问题: Issue 407 (opens new window)

# sysbench

$ sysbench --threads=4 --time=30 cpu run

sysbench 1.0.17 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 4
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:  3651.16

General statistics:
    total time:                          30.0010s
    total number of events:              109545

Latency (ms):
         min:                                    1.08
         avg:                                    1.10
         max:                                    5.78
         95th percentile:                        1.12
         sum:                               119955.35

Threads fairness:
    events (avg/stddev):           27386.2500/91.56
    execution time (avg/stddev):   29.9888/0.00

# stress

Last Updated: 11/27/2021, 10:11:48 AM