sysbench性能测试
#
帮助文档
#
Compiled-in tests:
fileio - File I/O test
cpu - CPU performance test
memory - Memory functions speed test
threads - Threads subsystem performance test
mutex - Mutex performance test
测试开始
#
apt install -y sysbench
sysbench cpu run
sysbench
测试结果
#
root@zian:/home/nginx# sysbench cpu run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Prime numbers limit: 10000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 996.02
General statistics:
total time: 10.0094s
total number of events: 9972
Latency (ms):
min: 1.00
avg: 1.00
max: 1.86
95th percentile: 1.01
sum: 9999.25
Threads fairness:
events (avg/stddev): 9972.0000/0.00
execution time (avg/stddev): 9.9992/0.00