Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

 fannkuch-redux benchmark N=10

Each chart bar shows how many times more Memory, one ↓ fannkuch-redux program used, compared to the program that used least Memory.

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.

    sortsort sort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0MicroPython #6 7.017.014,180552  2% 1% 2% 2% 1% 0% 100% 1%
1.9Pyston #6 2.322.327,860552  1% 1% 2% 1% 0% 100% 0% 0%
1.9Python 3 #6 5.635.648,096552  49% 21% 20% 16% 69% 19% 12% 13%
2.0Python development version #6 3.233.238,564552  5% 100% 0% 2% 0% 0% 0% 0%
2.5Nuitka #6 2.702.7010,508552  1% 1% 1% 0% 0% 100% 1% 1%
2.7Python 2 11.022.8511,4601009  6% 4% 97% 95% 94% 0% 1% 96%
3.0Python 3 #2 11.973.0712,6721008  97% 26% 98% 14% 8% 96% 98% 6%
3.1Python 3 #4 14.552.2012,8121069  94% 95% 94% 90% 98% 90% 93% 90%
3.1Python 3 #3 13.672.3112,852894  87% 84% 97% 85% 90% 94% 89% 87%
3.1Python 3 16.044.1212,8881271  98% 94% 29% 28% 30% 98% 99% 21%
3.6RustPython #6 56.7556.7715,068552  2% 1% 1% 1% 1% 100% 1% 1%
13Pyston #2 3.240.8552,9001008  96% 89% 19% 5% 2% 6% 91% 95%
13Python development version #2 4.601.2055,6921008  97% 95% 6% 3% 2% 92% 97% 1%
13Python development version 5.211.3556,4121271  13% 1% 96% 92% 90% 99% 1% 1%
14Nuitka 5.471.4258,7841271  100% 5% 95% 1% 1% 93% 96% 2%
14Nuitka #2 4.691.2360,4281008  93% 96% 15% 2% 95% 94% 3% 0%
17PyPy 3 #6 0.740.7569,036552  3% 3% 1% 3% 100% 0% 0% 0%
19PyPy 3 #4 3.110.7380,0281069  54% 54% 56% 49% 93% 58% 53% 55%
19PyPy 3 #3 2.780.6880,052894  49% 93% 52% 52% 48% 52% 53% 46%
19PyPy 3 #2 1.720.6780,0801008  14% 15% 55% 53% 47% 40% 46% 1%
19PyPy 3 1.790.6980,2961271  16% 23% 56% 53% 93% 35% 3% 1%
23Pyston #4 3.220.4595,3041069  91% 98% 91% 91% 85% 91% 91% 93%
23Nuitka #4 4.260.6095,6801069  89% 83% 89% 92% 88% 90% 87% 92%
23Pyston #3 3.190.4696,672894  78% 92% 87% 89% 85% 89% 87% 91%
23Nuitka #3 4.170.5996,868894  87% 90% 90% 86% 88% 97% 92% 90%
23Python development version #3 4.090.5797,032894  93% 84% 91% 92% 96% 91% 91% 91%
23Python development version #4 4.360.6097,1161069  92% 92% 90% 92% 97% 95% 92% 86%
77PyPy 2 1.680.58322,0081009  41% 19% 66% 16% 43% 68% 66% 32%
176Graal #6 3.863.47735,676552  93% 75% 86% 90% 76% 86% 98% 70%
missing benchmark programs
Jython No program
IronPython No program
Cython No program
Shedskin No program
Numba No program
Grumpy No program

 fannkuch-redux benchmark : Indexed-access to tiny integer-sequence

diff program output N = 7 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.

For N = 7 programs should generate these permutations (40KB) - which, incidentally, seem to be in the same order as permutations generated by the Tompkins-Paige algorithm, see pages 150-151 Permutation Generation Methods Robert Sedgewick.

The fannkuch benchmark is defined by programs in Performing Lisp Analysis of the FANNKUCH Benchmark, Kenneth R. Anderson and Duane Rettig.

Each program should

The conjecture is that this maximum count is approximated by n*log(n) when n goes to infinity.

FANNKUCH is an abbreviation for the German word Pfannkuchen, or pancakes, in analogy to flipping pancakes.


Thanks to Oleg Mazurov for insisting on a checksum and providing this helpful description of the approach he took -

Revised BSD license

  Home   Conclusions   License   Play