Each chart bar shows , one ↓ .
These are not the only programs that could be written. These are not the only compilers and interpreters. These are not the only programming languages.
Column × shows how many times more each program used compared to the benchmark program that used least.
× | Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
---|---|---|---|---|---|---|
missing benchmark programs | ||||||
Python 2 | No program | |||||
PyPy 2 | No program | |||||
Python 3 | No program | |||||
Python development version | No program | |||||
PyPy 3 | No program | |||||
Jython | No program | |||||
IronPython | No program | |||||
Cython | No program | |||||
Nuitka | No program | |||||
Shedskin | No program | |||||
Numba | No program | |||||
Pyston | No program | |||||
MicroPython | No program | |||||
Grumpy | No program | |||||
Graal | No program | |||||
RustPython | No program |
diff program output N = 27 with this output file to check your program is correct before contributing.
We are trying to show the performance of various programming language implementations - so we ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.
Each program should use the same step-by-step spigot algorithm to calculate digits of Pi.
Each program should
Programs should adapt the step-by-step algorithm given on pages 4,6 & 7 of Unbounded Spigot Algorithms for the Digits of Pi (156KB pdf). (Not the deliberately obscure version given on page 2.)(Not the Rabinowitz-Wagon algorithm.)
In addition to language specific multiprecision arithmetic, we will accept programs that use GMP.
For more information see Eric W. Weisstein, "Pi Digits." From MathWorld--A Wolfram Web Resource.
http://mathworld.wolfram.com/PiDigits.html