cpu-benchmark

Info:

  • CPU benchmark by calculating Pi, powered by Python 3.

Algorithm

  • 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. 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/

Install cpuinfopip install py-cpuinfo

Benchmarkpython cpu-benchmark.py

Benchmark Results

CPUArchOSPerfomance (Avg.)Verified
Apple M1ARMmacOS 11.5.219.534swhite_check_mark
Intel Core i3-8100x86Windows 10 20H230.636swhite_check_mark
Intel Xeon Gold 6125x86Linux (Hyper-V)30.781swhite_check_mark

GitHub

https://github.com/alexdedyura/cpu-benchmark