fibonacci benchmark N=1,000,000

Each chart bar shows how many times slower, one ↓ fibonacci 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.0Pyston #3 0.090.10?181  100% 0% 0% 0%
1.0Pyston #3 0.090.10?181  0% 0% 100% 0%
1.0Pyston #3 0.090.10?181  0% 0% 78% 20%
2.7PyPy 2 #3 0.260.271,484181  4% 100% 0% 0%
2.8PyPy 2 #3 0.270.271,500181  100% 0% 0% 0%
2.8PyPy 2 #3 0.260.271,504181  0% 4% 0% 100%
3.0PyPy 3 #3 0.290.301,428182  100% 7% 0% 17%
3.1PyPy 3 #3 0.300.301,428182  20% 100% 7% 4%
3.8PyPy 3 #3 0.370.371,432182  39% 100% 34% 32%
5.2PyPy 2 0.500.5086,068136  0% 2% 2% 100%
5.2PyPy 2 0.500.5085,848136  0% 0% 98% 2%
5.3PyPy 2 0.510.5285,888136  8% 2% 100% 13%
8.1Python 2 #3 0.780.786,680181  0% 5% 100% 4%
8.1Python 2 #3 0.780.796,716181  9% 100% 3% 4%
8.1Python 2 #3 0.790.796,680181  99% 9% 4% 7%
8.2Python development version #3 0.800.808,180182  5% 99% 1% 4%
8.5Python development version #3 0.820.828,116182  100% 9% 5% 6%
8.5Python development version #3 0.830.838,216182  14% 10% 92% 9%
8.7Python 3 #3 0.840.849,448182  96% 4% 4% 1%
8.7Cython #3 0.840.849,344184  15% 1% 86% 2%
8.7Cython #3 0.840.849,348184  2% 1% 0% 100%
8.7Cython #3 0.840.849,312184  4% 100% 1% 1%
8.7Python 3 #3 0.840.859,448182  4% 2% 100% 5%
8.8Python 3 #3 0.850.869,292182  9% 100% 3% 5%
8.8Nuitka #3 0.850.8610,960182  2% 100% 0% 0%
8.9Nuitka #3 0.860.8610,760182  2% 2% 3% 100%
8.9Nuitka #3 0.860.8710,848182  1% 11% 99% 3%
12Python 2 1.161.1620,672136  43% 4% 59% 3%
12Python 2 1.161.1720,624136  5% 3% 99% 0%
12Python 3 1.191.1924,276137  1% 0% 1% 100%
12Python 3 1.191.1924,080137  0% 1% 1% 100%
13Nuitka 1.211.2224,968137  2% 1% 2% 100%
13Python 2 1.211.2220,836136  4% 99% 2% 11%
13Python 3 1.201.2324,136137  100% 0% 2% 1%
13Nuitka 1.251.2524,680137  99% 2% 1% 1%
13Nuitka 1.221.2825,100137  95% 7% 1% 2%
14Numba #3 1.341.3566,000208  3% 99% 0% 0%
14Numba #3 1.351.3665,796208  98% 2% 4% 3%
14Numba #3 1.371.3865,776208  94% 7% 12% 1%
15Cython 1.431.4423,852138  25% 24% 25% 100%
15Cython 1.451.4623,872138  100% 30% 19% 27%
15Cython 1.471.4723,716138  33% 100% 28% 24%
15Python development version 1.471.4726,512137  3% 100% 3% 1%
15Python development version 1.481.4826,092137  5% 100% 11% 2%
18Python development version 1.521.7125,972137  88% 21% 1% 8%
18Numba 1.721.7363,472160  90% 22% 14% 40%
18Numba 1.761.7763,604160  11% 48% 100% 48%
21Numba 1.712.0363,492160  59% 26% 26% 10%
31Jython #3 7.852.99280,248181  76% 66% 79% 52%
31Jython #3 7.413.02270,896181  67% 57% 70% 63%
32Jython #3 8.393.13295,100181  77% 79% 52% 72%
43Pyston #2 4.204.2060,472110  3% 2% 5% 100%
44Pyston #2 4.284.2963,244110  8% 5% 8% 100%
46Pyston #2 4.424.4360,588110  100% 10% 7% 11%
87PyPy 2 #2 8.448.4575,148110  100% 1% 1% 1%
87IronPython #3 8.098.4876,272181  1% 3% 2% 94%
87IronPython #3 8.088.4876,180181  2% 3% 4% 94%
87PyPy 2 #2 8.488.4875,096110  1% 26% 0% 75%
88IronPython #3 8.228.4978,264181  6% 96% 5% 6%
88PyPy 2 #2 8.548.5574,984110  2% 100% 1% 4%
121PyPy 3 #2 11.7711.7844,620110  47% 34% 84% 35%
122Python 2 #2 11.8311.8438,292110  45% 2% 57% 2%
122Python 3 #2 11.8511.859,192110  1% 2% 100% 1%
123Python 3 #2 11.8811.899,292110  19% 32% 52% 1%
123Python 3 #2 11.9111.919,084110  1% 4% 3% 98%
123Nuitka #2 11.9111.9110,920110  2% 85% 2% 16%
123Nuitka #2 11.9311.9310,884110  17% 1% 84% 2%
123Nuitka #2 11.9511.9510,888110  2% 100% 1% 2%
124PyPy 3 #2 11.9812.0144,684110  44% 43% 51% 79%
126Python 2 #2 12.1812.1838,236110  7% 8% 100% 4%
127Python 2 #2 12.3512.3638,368110  13% 100% 8% 7%
128PyPy 3 #2 12.4212.4244,692110  46% 43% 100% 40%
129Python development version #2 12.4612.488,060110  7% 8% 86% 22%
130Python development version #2 12.6012.628,096110  11% 100% 11% 8%
146Python development version #2 14.1114.148,080110  49% 61% 28% 43%
248Jython #2 29.4124.06302,224110  48% 45% 43% 48%
292Jython #2 34.7928.29311,184110  58% 54% 56% 54%
301Jython #2 35.3129.17314,772110  59% 62% 57% 55%
402Grumpy #2 82.3539.00304,740110  57% 53% 54% 53%
420Grumpy #2 82.1640.71295,140110  55% 50% 54% 49%
429Grumpy #2 83.7641.65298,908110  54% 55% 51% 51%
622MicroPython #3 60.3260.322,992182  1% 1% 100% 1%
622MicroPython #3 60.3260.323,160182  1% 20% 0% 81%
622MicroPython #3 60.3360.342,988182  1% 1% 100% 1%
836MicroPython #2 81.1481.144,228110  2% 0% 100% 1%
837MicroPython #2 81.1581.154,028110  1% 100% 0% 2%
837MicroPython #2 81.1981.194,148110  1% 100% 0% 2%
1,371IronPython #2 145.26132.96126,220110  32% 26% 36% 95%
missing benchmark programs
Shedskin No program

 fibonacci benchmark : Calculate Fibonacci sequence

 

Revised BSD license

  Home   Conclusions   License   Play