Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

 fannkuch-redux benchmark N=10

Each chart bar shows how many times slower, one ↓ fannkuch-redux program was, compared to the fastest program.

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.

    sort sortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0PyPy 2 3.091.0981,3481009  94% 66% 72% 69%
1.1PyPy 3 3.401.2580,5041271  97% 63% 64% 60%
1.2PyPy 3 #2 3.281.3279,9761008  59% 95% 53% 54%
1.2PyPy 3 #6 1.281.3567,552552  99% 3% 2% 1%
1.4PyPy 3 #3 4.121.5380,448894  64% 93% 59% 68%
1.4PyPy 3 #4 4.361.5379,3761069  72% 66% 92% 70%
2.5Nuitka #3 10.122.6913,624894  98% 93% 98% 94%
2.6Nuitka #4 10.552.8113,4961069  100% 95% 96% 94%
2.8Pyston 11.203.0731,1881009  94% 96% 92% 93%
2.8Python development version #3 11.663.1112,624894  96% 98% 91% 98%
2.9Python 3 #3 11.993.1912,420894  98% 94% 96% 96%
2.9Nuitka #2 12.193.1913,5521008  100% 97% 95% 97%
2.9Graal #6 3.343.20464,152552  96% 5% 2% 10%
3.1Python development version #4 12.543.3312,7001069  99% 94% 97% 96%
3.1Python 3 #4 12.663.4312,7761069  98% 92% 96% 93%
3.6Nuitka 14.893.9313,5641271  99% 96% 96% 96%
3.7Nuitka #6 3.914.099,412552  100% 2% 1% 1%
3.8Python 3 #2 15.764.1912,5161008  99% 95% 96% 94%
3.9Python development version #2 16.344.2212,7561008  99% 99% 99% 99%
4.1Python 2 16.774.4411,6481009  99% 97% 94% 96%
4.5Python development version 18.764.8612,9081271  99% 98% 98% 99%
4.7Python 3 19.505.1412,7201271  99% 98% 95% 96%
5.0Python 3 #6 5.445.458,864552  6% 2% 100% 2%
5.1Python development version #6 5.375.617,512552  100% 1% 1% 1%
7.9MicroPython #6 8.598.604,096552  6% 2% 2% 100%
missing benchmark programs
Jython No program
IronPython No program
Cython No program
Shedskin No program
Numba No program
Grumpy No program
RustPython 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