Code: Select all
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.68-v7+ #1140 SMP Wed Sep 5 17:17:58 BST 2018 armv7l GNU/LinuxCode: Select all
pi@raspberrypi:~ $ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 81.7408s
total number of events: 10000
total time taken by event execution: 326.8867
per-request statistics:
min: 31.61ms
avg: 32.69ms
max: 81.15ms
approx. 95 percentile: 37.76ms
Threads fairness:
events (avg/stddev): 2500.0000/43.93
execution time (avg/stddev): 81.7217/0.01
pi@raspberrypi:~ $ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 89.0788s
total number of events: 10000
total time taken by event execution: 356.2378
per-request statistics:
min: 31.62ms
avg: 35.62ms
max: 91.25ms
approx. 95 percentile: 42.79ms
Threads fairness:
events (avg/stddev): 2500.0000/50.05
execution time (avg/stddev): 89.0594/0.01
pi@raspberrypi:~ $ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 93.9490s
total number of events: 10000
total time taken by event execution: 375.7129
per-request statistics:
min: 31.62ms
avg: 37.57ms
max: 105.34ms
approx. 95 percentile: 44.17ms
Threads fairness:
events (avg/stddev): 2500.0000/35.90
execution time (avg/stddev): 93.9282/0.02
pi@raspberrypi:~ $ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 4
Doing CPU performance benchmark
Threads started!
Done.
Maximum prime number checked in CPU test: 20000
Test execution summary:
total time: 95.4428s
total number of events: 10000
total time taken by event execution: 381.6713
per-request statistics:
min: 31.62ms
avg: 38.17ms
max: 87.14ms
approx. 95 percentile: 45.12ms
Threads fairness:
events (avg/stddev): 2500.0000/40.42
execution time (avg/stddev): 95.4178/0.01PS: Just to intrigue you more I did the same exercise after switching off power for quite some period and venting the RPi manually with a piece of paper (I do not have a proper fan). Guess what, the avg time was, it was around 79ms

