You might recall that I did a simple performance test with the Banana Pi and Raspberry Pi, using a small Python script – and I logged the results. I wrote about that here.
Well, Lars Klein reached out and asked if I would do a more proper test – a C++ app with multi-threading. Since the Banana Pi is dual-core, that is significant. So, he supplied some code here:
and then I ran this to compile and then execute it (did exactly the same on Raspberry Pi and Banana Pi):
$ g++ -fopenmp ./benchmark.cpp -o bench
$ export OMP_NUM_THREADS=2
That worked without any issue on both systems.
This test took some time to run, so it took me a couple hours to put all of this. Here are the results in tabular and graph form:
and here it is as a graph:
this shows that for a multi-threaded app, even the slowest over-clocking for the Banana Pi is still faster than the faster overclock of the Raspberry Pi.
Overclocking the Banana Pi:
In my last write-up, the “raspi-config” utility didn’t seem to affect the CPU speed. I pulled the latest ROM and did the test with the latest OS for the Banana Pi and the overclock feature DOES (as you can see by the numbers) appear to work now.