CPU Benchmark - Raspberry PI vs Banana PI vs Intel Core Processor N-series - single core speed test with Fibonacci sequence
In this short article, I would like to show the results of a simple CPU test made on Raspberry PI and Banana PI using Fibonacci sequence, run on a single core.

(smaller computations time means better performance)
Test result:
Tested device | Computations time [s] | Operating system | Computer specification |
Raspberry PI 2 B+ | 234 | Raspbian (Debian) | Homepage |
Raspberry PI 3 B+ | 201 | Raspbian (Debian) | Homepage |
Raspberry PI 5 B | 31 | Raspios (Debian) | Homepage |
Banana PI M3 | 142 | Raspbian (Debian) | Wiki |
N100 | 15 | Ubuntu 24.10 (x64) Compiler: g++ | Motherboard Specs CPU Specs |
Ryzen 9 5900X (AMD) | 9 | Ubuntu 24.04 (x64) Compiler: g++ | Homepage |
Note: smaller computations time means better performance (the CPU is faster).
(e.g. Banana PI M3 is 1.65 times faster than Raspberry PI 2 B+ on single core computation)
Used test (program.cpp
file):
xxxxxxxxxx
//CPU test
int main()
{
unsigned long tmp, a = 0, b = 1;
//std::cout << a << std::endl;
//std::cout << b << std::endl;
std::cout << "Started!" << std::endl;
time_t t1 = time(NULL);
for (unsigned long i = 0uL; i < 10000uL; ++i)
{
for (unsigned long j = 0uL; j < 1000000uL; ++j)
{
tmp = b;
b = a + b;
a = tmp;
//std::cout << b << std::endl;
}
}
time_t t2 = time(NULL);
time_t dt = t2 - t1;
std::cout << "Finished!" << std::endl;
std::cout << "Result: " << b << std::endl;
std::cout << "Time: " << dt << "s" << std::endl;
return 0;
}
Compilation:
xxxxxxxxxx
g++ -o program program.cpp
# or:
gcc -o program program.cpp
Running
xxxxxxxxxx
chmod a+x ./program
./program
- CPU Benchmark - single core speed test with Fibonacci Sequence in JavaScript
-
CPU Benchmark - single core speed test with Fibonacci Sequence in Java
-
CPU Benchmark - single core speed test with Fibonacci Sequence in AssemblyScript
-
CPU Benchmark - single core speed test with Fibonacci Sequence in Dart
-
CPU Benchmark - single core speed test with Fibonacci Sequence in Python
-
CPU Benchmark - single core speed test with Fibonacci Sequence in PHP