Instruction : https://www.howtoforge.com/how-to-benchmark-your-system-cpu-file-io-mysql-with-sysbench
CPU Test
1 Thread
sudo sysbench --test=cpu --cpu-max-prime=20000 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 190.2316s
total number of events: 10000
total time taken by event execution: 190.2139
per-request statistics:
min: 18.83ms
avg: 19.02ms
max: 30.35ms
approx. 95 percentile: 19.06ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 190.2139/0.00
4 Thread
sudo sysbench --num-threads=4 --test=cpu --cpu-max-prime=20000 --validate run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Additional request validation enabled.
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 126.3571s
total number of events: 10000
total time taken by event execution: 505.3316
per-request statistics:
min: 23.36ms
avg: 50.53ms
max: 149.99ms
approx. 95 percentile: 69.97ms
Threads fairness:
events (avg/stddev): 2500.0000/17.94
execution time (avg/stddev): 126.3329/0.02
No comments:
Post a Comment