# The difference of performance between 3 versions of Raspberry Pi, the comparison.

I have the basic benckmarks for Raspberry Pi version 1, 2 and 3, and here is the comparison, all the benchmarks on different Pis are using the same operating system / package, so there won’t be a difference from the version of software.

The testing platform:

RASPBIAN JESSIE
Version: February 2016
Release date: 2016-02-26
Kernel version: 4.1

Since I just did these benchmarks on Raspberry Pi 3:

https://www.peterdavehello.org/2016/03/raspberry-pi-3-model-b-basic-benchmarks/

The Raspbian and all the softwares are up to date, so the benchmark results of Raspberry Pi 3 are just copied from that post, they are the same result. The results from Pi 1/2 are whole new tested, in fact they are very close to the test results I did before, I would say they are all in the tolerance scope, so I’ll just ignore the detail of the benchmarks, only focus on the final results, the performance.

PHP benchmark Script using PHP 5.6.17-0+deb8u1: (in secs, the lower the better)
Raspberry Pi model B+ – 141.145
Raspberry Pi 2 model B – 48.113, 293% faster than Pi 1
Raspberry Pi 3 model B – 26.984, 523% faster than Pi 1, 178% faster than Pi 2

PHP benchmark Script using PHP 7.0.3-5: (in secs, the lower the better)
Raspberry Pi model B+ – 48.153
Raspberry Pi 2 model B – 17.27, 279% faster than Pi 1
Raspberry Pi 3 model B – 10.239, 470% faster than Pi 1, 169% faster than Pi 2

sysbench v0.4.12 single thread: (cpumaxprime=20000,in secs, the lower the better)
Raspberry Pi model B+ – 1332.0115
Raspberry Pi 2 model B – 765.2441, 174% faster than Pi 1
Raspberry Pi 3 model B – 478.0941, 748% faster than Pi 1, 160% faster than Pi 2

sysbench v0.4.12 quad thread: (cpumaxprime=20000,in secs, the lower the better, note that Pi 1 has only single CPU core)
Raspberry Pi model B+ – N/A (non-multi-core CPU)
Raspberry Pi 2 model B – 192.1143
Raspberry Pi 3 model B – 119.9338, 160% faster than Pi 2

Hardinfo CPU Blowfish: (in secs, the lower the better)

Raspberry Pi model B+ – 101.10
Raspberry Pi 2 model B – 62.26, 162% faster than Pi 1
Raspberry Pi 3 model B – 41.10, 246% faster than Pi 1, 151% faster than Pi 2

Hardinfo CPU CryptoHash: (in MiB/sec, the higher the better)
Raspberry Pi model B+ – 8.75
Raspberry Pi 2 model B – 15.41, 176% faster than Pi 1
Raspberry Pi 3 model B – 24.83, 284% faster than Pi 1, 161% faster than Pi 2

Hardinfo CPU Fibonacci: (in secs, the lower the better)
Raspberry Pi model B+ – 26.59
Raspberry Pi 2 model B – 16.23, 164% faster than Pi 1
Raspberry Pi 3 model B – 12.35, 215% faster than Pi 1, 131% faster than Pi 2

Hardinfo CPU N-Queens: (in secs, the lower the better)
Raspberry Pi model B+ – 86.71
Raspberry Pi 2 model B – 51.77, 133% faster than Pi 1
Raspberry Pi 3 model B – 36.42, 238% faster than Pi 1, 142% faster than Pi 2

Hardinfo FPU FFT: (in secs, the lower the better)
Raspberry Pi model B+ – 151.73
Raspberry Pi 2 model B – 77.62, 195% faster than Pi 1
Raspberry Pi 3 model B – 47.29, 321% faster than Pi 1, 164% faster than Pi 2

Hardinfo FPU Raytracing: (in secs, the lower the better)
Raspberry Pi model B+ – 150.01
Raspberry Pi 2 model B – 88.03, 170% faster than Pi 1
Raspberry Pi 3 model B – 52.66, 285% faster than Pi 1, 167% faster than Pi 2

To hard to read or compare? I made a chart here, it’ll be easier to understand the difference:

Hope this comparison helps the people want to know the performance between different Raspberry Pi,  since Raspbian is not ARM v7/v8 optimized, the difference may be much different once the binaries been optimized forARM v7/v8, and the 64-bit architecture, I may do some tests about that in future.

If you are interested in the benchmarks detail of Raspberry Pi 1/2, please take a look at the 2 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/

There are some little differences between the different posts, because I redo all the benchmarks in the same software environment to have a more precise comparison.(though I didn’t run the benchmarks many times … ha …)