As the benchmarks I ran on Raspberry Pi B+ and Raspberry Pi 2 model B, let’s do some basic benchmarks on the latest Raspberry Pi 3.
Let’s have some photos first:
My Raspberry Pi 3 crashed during the benchmarking … so I just added a heat sink on it …
See:
@Raspberry_Pi 3 is so hot, it should have a cooler, or it may crash when running #benchmarks #RaspberryPi #pi pic.twitter.com/xTU5nvvvIF
— Peter Dave Hello͌ͯͦ̉ (@PeterDaveHello) March 6, 2016
This is the testing platform:
RASPBIAN JESSIE
Version: February 2016
Release date: 2016-02-26
Kernel version: 4.1
Here are the benchmarks result:
PHP benchmark Script using PHP 5.6.17:
-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2016-03-06 09:32:58 Server : @ PHP version : 5.6.17-0+deb8u1 Platform : Linux -------------------------------------- test_math : 9.073 sec. test_stringmanipulation : 9.203 sec. test_loops : 4.945 sec. test_ifelse : 3.763 sec. -------------------------------------- Total time: : 26.984 sec.
PHP benchmark Script using PHP 7.0.3 (Using Raspbian testing repository):
-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2016-03-06 09:35:58 Server : @ PHP version : 7.0.3-5 Platform : Linux -------------------------------------- test_math : 2.578 sec. test_stringmanipulation : 3.426 sec. test_loops : 2.561 sec. test_ifelse : 1.674 sec. -------------------------------------- Total time: : 10.239 sec.
sysbench v0.4.12 single thread:
$ 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: 478.1029s total number of events: 10000 total time taken by event execution: 478.0941 per-request statistics: min: 47.69ms avg: 47.81ms max: 50.63ms approx. 95 percentile: 47.92ms Threads fairness: events (avg/stddev): 10000.0000/0.00 execution time (avg/stddev): 478.0941/0.00
sysbench v0.4.12 quad threads:
$ 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: 119.9535s total number of events: 10000 total time taken by event execution: 479.7353 per-request statistics: min: 47.69ms avg: 47.97ms max: 130.44ms approx. 95 percentile: 47.92ms Threads fairness: events (avg/stddev): 2500.0000/5.48 execution time (avg/stddev): 119.9338/0.02
Hardinfo benchmarks:
If you are interested in the benchmarks on Raspberry Pi 2 model B and Raspberry Pi model B+, please take a look at these posts below:
https://www.peterdavehello.org/2016/02/raspberry-pi-1-model-b-basic-benchmarks/
https://www.peterdavehello.org/2016/02/raspberry-pi-2-model-b-basic-benchmark/
That’s all, oh, please note that currently Raspbian is not ARM v8 optimized, and the system and binaries are still using 32-bit architecture, so the performance result may not be so close to its real capability, not sure if Raspbian will release official 64-bit version for it.
自動引用通知: The difference of performance between 3 versions of Raspberry Pi, the comparison. | Peter Dave Hello's Blog