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 2.810.87297,7001009  78% 78% 94% 78%
1.0PyPy 2 2.790.88296,7041009  75% 81% 77% 95%
1.0PyPy 2 2.760.90296,6761009  78% 94% 74% 71%
1.5PyPy 3 3.281.2978,4201271  93% 67% 61% 60%
1.5PyPy 3 3.311.3078,5681271  85% 63% 58% 65%
1.5PyPy 3 #6 1.291.3167,848552  98% 4% 8% 3%
1.5PyPy 3 3.311.3178,3561271  57% 57% 89% 58%
1.5PyPy 3 #6 1.301.3168,044552  2% 9% 92% 5%
1.5PyPy 3 #6 1.301.3267,704552  2% 98% 2% 5%
1.5PyPy 3 #2 3.201.3378,5201008  60% 80% 97% 63%
1.6PyPy 3 #2 3.231.3678,4041008  66% 55% 75% 66%
1.6PyPy 3 #3 3.871.3778,744894  67% 94% 66% 67%
1.6PyPy 3 #3 3.821.4278,744894  67% 90% 64% 65%
1.7PyPy 3 #3 3.851.4578,768894  92% 62% 65% 63%
1.7PyPy 3 #2 3.181.4778,5201008  70% 60% 75% 70%
1.7PyPy 3 #4 4.251.4978,2961069  97% 66% 67% 68%
1.8PyPy 3 #4 4.181.5478,2681069  71% 72% 73% 92%
1.9PyPy 3 #4 4.041.6578,5241069  70% 68% 96% 68%
3.1Pyston 10.352.73158,5601009  95% 93% 99% 94%
3.2Pyston 10.382.83157,8721009  92% 89% 95% 91%
3.3Nuitka #3 10.722.8859,436894  95% 94% 97% 94%
3.3Pyston 10.422.89157,5841009  87% 90% 89% 96%
3.3Nuitka #3 10.632.9056,360894  97% 94% 94% 89%
3.3Nuitka #4 11.072.9155,8081069  96% 96% 99% 97%
3.4Graal #6 3.412.94393,772552  56% 14% 42% 11%
3.4Graal #6 3.402.94393,284552  100% 20% 5% 1%
3.4Nuitka #3 10.652.9457,168894  94% 92% 89% 95%
3.4Graal #6 3.402.95393,132552  85% 23% 5% 9%
3.4Nuitka #4 10.992.9856,9641069  96% 95% 95% 90%
3.5Nuitka #4 10.963.0456,9761069  92% 96% 88% 92%
4.0Python 3 #3 11.833.4652,828894  97% 96% 90% 97%
4.1Python 3 #4 12.583.5552,9441069  95% 98% 90% 94%
4.1Python 3 #4 12.493.5852,4961069  96% 91% 92% 93%
4.2Python 3 #4 12.493.6253,0521069  93% 92% 96% 90%
4.2Python development version #3 14.093.6552,644894  98% 99% 99% 97%
4.2Python 3 #3 12.113.6652,808894  96% 93% 93% 95%
4.2Nuitka #2 14.033.6755,7121008  97% 98% 97% 98%
4.2Python development version #3 14.033.6752,176894  99% 97% 98% 95%
4.2Nuitka #2 13.923.6756,0481008  96% 97% 96% 97%
4.2Python 3 #3 11.923.6853,056894  94% 95% 93% 96%
4.2Python development version #3 14.073.7052,184894  98% 97% 98% 95%
4.2Nuitka #2 13.873.7155,5561008  96% 95% 92% 98%
4.4Python development version #4 14.433.8052,1481069  98% 98% 98% 92%
4.4Python development version #4 14.453.8151,7481069  97% 99% 94% 96%
4.4Python development version #4 14.533.8152,0921069  97% 100% 94% 96%
5.0Python 2 16.554.3741,9321009  97% 98% 96% 96%
5.0Nuitka 16.614.3756,0241271  97% 98% 97% 96%
5.0Nuitka 16.884.3756,6841271  98% 99% 99% 98%
5.0Python 2 16.304.3743,2921009  96% 95% 94% 95%
5.1Nuitka 16.874.4758,5441271  97% 96% 95% 97%
5.3Python 2 17.084.6543,6201009  97% 96% 98% 97%
5.6Nuitka #6 4.874.879,744552  1% 5% 100% 1%
5.6Nuitka #6 4.884.889,508552  1% 5% 100% 0%
5.8Nuitka #6 5.035.039,624552  1% 6% 0% 100%
5.9Python development version #2 19.795.1452,1401008  99% 99% 98% 96%
5.9Python development version #2 19.755.1551,8881008  97% 100% 95% 98%
5.9Python 3 #2 18.195.1752,8721008  97% 99% 95% 96%
6.0Python development version #2 19.805.2251,8281008  99% 97% 94% 97%
6.0Python 3 #2 18.255.2752,8681008  99% 98% 97% 97%
6.2Python 3 #2 18.155.3853,0001008  93% 98% 98% 97%
6.7Python 3 21.445.8852,5641271  97% 98% 94% 97%
6.8Python 3 21.465.9353,2081271  94% 98% 97% 93%
6.9Python 3 21.766.0153,3241271  95% 95% 98% 95%
7.0Python development version 23.726.0852,1201271  100% 99% 99% 99%
7.0Python development version 23.616.0852,4401271  99% 99% 99% 99%
7.0Python development version 23.516.1052,3041271  99% 99% 99% 95%
7.4Python 3 #6 6.496.508,548552  12% 100% 10% 8%
7.6Python 3 #6 6.586.598,440552  20% 100% 10% 11%
7.6Python development version #6 6.646.657,700552  100% 5% 1% 1%
7.7Python development version #6 6.666.707,904552  1% 15% 1% 90%
7.7Python development version #6 6.716.727,948552  0% 6% 1% 100%
7.8Python 3 #6 6.506.798,452552  90% 19% 9% 7%
9.8MicroPython #6 8.538.544,260552  0% 0% 0% 100%
9.8MicroPython #6 8.558.564,220552  0% 100% 1% 1%
10MicroPython #6 8.928.944,244552  1% 59% 0% 42%
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