sysbench版本:1.0.7 OS:macOS 10.11.6
无论我在哪里运行sysbench cpu run,我都会得到非常类似的结果,如下所示。
sysbench 1.0.7 (using bundled LuaJIT 2.1.0-beta2)
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!
General statistics:
total time: 10.0005s
total number of events: 9083
Latency (ms):
min: 0.96
avg: 1.10
max: 7.18
95th percentile: 1.34
sum: 9995.18
Threads fairness:
events (avg/stddev): 9083.0000/0.00
execution time (avg/stddev): 9.9952/0.00我读了一些博客文章,都说我应该看看total time,但是在不同的平台/env中总是有10秒的时间。我还得到了非常小的素数列表(例如--cpu-max-prime=100 )的类似结果。我还使用--time=0运行,基准测试从未完成。
我的猜测是,total time匹配用--time选项指定的值,但是我不知道应该使用什么命令。
提前感谢
发布于 2017-06-28 14:46:05
拿-cpu-最大值-足够大,例如,让它是20000。至于sysbench,它看起来总是运行10秒,所以您应该看到“事件总数”值(高值意味着更好的性能)。要获得正确的服务器CPU的总体性能,您也应该将--num- cpuinfo =cpuinfo中的超线程数放在一起。
发布于 2017-08-21 15:06:43
您可以设置--最大时间来指示测试的不同最大时间(以秒为单位)。默认为10秒。您可以在这里看到完整的手册:http://imysql.com/wp-content/uploads/2014/10/sysbench-manual.pdf
发布于 2022-10-10 18:08:05
请始终阅读man中所需的不同参数。使用下面的示例,可以看到cpu的性能。
sysbench --time=60 --resoults-interval=10 --threads=8 cpu runhttps://stackoverflow.com/questions/44299402
复制相似问题