/pi-cpu-benchmark

CPU benchmark by calculating Pi, powered by Python3

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

CPU Benchmark

cpu-logo
My benchmark allows you to find out the performance of your processor. The program calculates pi with an accuracy of 10,000 decimal places. The time spent on the calculation is counted as the test result. The result is determined by the average of 10 attempts. Powered by Python3. Lower is Better.

Supported architectures:

  • x86 (AMD, Intel)
  • ARM (Apple Silicon, Raspberry Pi, Qualcomm and etc)
  • VLIW* (МЦСТ Эльбрус)
  • RISC-V*

How to install

Install Python 3 from official website (Current)

https://www.python.org/downloads/

Clone repository and entering directory

git clone https://github.com/alexdedyura/cpu-benchmark
cd cpu-benchmark

Benchmark

python cpu-benchmark.py or python3 cpu-benchmark.py

Benchmark Results

CPU Arch OS Perfomance (Avg.) Verified
Apple M1 ARM macOS 11.5.2 19.534s
AMD Ryzen 5800X x86 Windows 11 22H2 16.389s
AMD Ryzen 5900HX x86 Unknown 17.352s
Intel Core i3-8100 x86 Windows 10 20H2 30.636s
Intel Xeon Gold 6125 x86 Linux (Hyper-V, 8 threads) 30.781s
Raspberry Pi 400 ARM Ubuntu 20.04.4 LTS 81.589s
Intel Xeon E5-2630 v4 x86 Windows Server 2012 49.883s
Neoverse N1 ARM Linux (Ubuntu 20.04, 4 threads) 35.366s