$ stress-ng --cpu 1 --cpu-method matrixprod --metrics-brief -t 60
stress-ng: info: [1932] dispatching hogs: 1 cpu
stress-ng: info: [1932] cache allocate: using built-in defaults as unable to determine cache details
stress-ng: info: [1932] cache allocate: default cache size: 2048K
stress-ng: info: [1932] successful run completed in 60.23s (1 min, 0.23 secs)
stress-ng: info: [1932] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [1932] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [1932] cpu 258 60.22 60.22 0.00 4.28 4.28
$ stress-ng --cpu 6 --cpu-method matrixprod --metrics-brief -t 60
stress-ng: info: [1935] dispatching hogs: 6 cpu
stress-ng: info: [1935] cache allocate: using built-in defaults as unable to determine cache details
stress-ng: info: [1935] cache allocate: default cache size: 2048K
stress-ng: info: [1935] successful run completed in 60.14s (1 min, 0.14 secs)
stress-ng: info: [1935] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [1935] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [1935] cpu 882 60.10 359.17 0.02 14.68 2.46
$ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=1 --max-time=60 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: 14.2567s
total number of events: 10000
total time taken by event execution: 14.2539
per-request statistics:
min: 1.42ms
avg: 1.43ms
max: 6.39ms
approx. 95 percentile: 1.42ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 14.2539/0.00
$ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=6 --max-time=60 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 6
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 3.5062s
total number of events: 10000
total time taken by event execution: 20.9935
per-request statistics:
min: 1.42ms
avg: 2.10ms
max: 19.40ms
approx. 95 percentile: 2.62ms
Threads fairness:
events (avg/stddev): 1666.6667/498.81
execution time (avg/stddev): 3.4989/0.00