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  0% 0% 100% 0%
1.0Pyston #3 0.090.10?181  100% 0% 0% 0%
1.0Pyston #3 0.090.10?181  0% 0% 78% 20%
3.6PyPy 3 #3 0.350.351,316182  23% 78% 3% 0%
3.7PyPy 3 #3 0.350.361,276182  3% 3% 3% 100%
3.7PyPy 3 #3 0.360.361,312182  0% 97% 0% 3%
3.8PyPy 2 #3 0.370.371,616181  97% 0% 3% 0%
3.9PyPy 2 #3 0.380.381,560181  3% 3% 100% 0%
3.9PyPy 2 #3 0.380.381,608181  3% 0% 97% 3%
8.1Python 2 #3 0.780.786,680181  0% 5% 100% 4%
8.1Python 3 #3 0.780.799,640182  1% 1% 0% 99%
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.1Python 3 #3 0.790.799,580182  1% 100% 1% 3%
8.2Python 3 #3 0.790.809,636182  11% 3% 1% 100%
8.2Python development version #3 0.800.808,180182  5% 99% 1% 4%
8.3Nuitka #3 0.800.8110,940182  0% 0% 0% 100%
8.4Nuitka #3 0.820.8211,228182  10% 2% 0% 100%
8.5Python development version #3 0.820.828,116182  100% 9% 5% 6%
8.5Nuitka #3 0.830.8311,008182  0% 1% 1% 100%
8.5Python development version #3 0.830.838,216182  14% 10% 92% 9%
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%
12Python 3 1.141.1525,468137  0% 0% 1% 100%
12Python 3 1.161.1625,216137  1% 100% 0% 2%
12Python 2 1.161.1620,672136  43% 4% 59% 3%
12Python 2 1.161.1720,624136  5% 3% 99% 0%
12Nuitka 1.171.1726,572137  0% 72% 2% 29%
12Nuitka 1.181.1826,596137  100% 0% 1% 0%
12Nuitka 1.171.1826,568137  1% 0% 100% 1%
13Python 2 1.211.2220,836136  4% 99% 2% 11%
13Python 3 1.181.2425,184137  2% 0% 3% 98%
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%
87IronPython #3 8.098.4876,272181  1% 3% 2% 94%
87IronPython #3 8.088.4876,180181  2% 3% 4% 94%
88IronPython #3 8.228.4978,264181  6% 96% 5% 6%
90PyPy 3 #2 8.708.7073,172110  2% 100% 0% 1%
90PyPy 3 #2 8.758.7573,100110  1% 100% 0% 1%
90PyPy 3 #2 8.768.7773,200110  2% 100% 0% 1%
92PyPy 2 #2 8.918.9185,012110  1% 1% 100% 0%
92PyPy 2 #2 8.928.9284,784110  100% 1% 1% 0%
93PyPy 2 #2 9.049.0484,392110  2% 2% 100% 0%
122Python 3 #2 11.8011.819,304110  1% 3% 100% 1%
122Python 3 #2 11.8011.819,316110  100% 1% 1% 2%
122Python 3 #2 11.8111.819,272110  2% 1% 1% 100%
122Python 2 #2 11.8311.8438,292110  45% 2% 57% 2%
123Nuitka #2 11.9111.9210,972110  1% 1% 0% 100%
123Nuitka #2 11.9211.9210,912110  59% 1% 6% 38%
123Nuitka #2 11.9611.9610,884110  0% 100% 1% 1%
126Python 2 #2 12.1812.1838,236110  7% 8% 100% 4%
127Python 2 #2 12.3512.3638,368110  13% 100% 8% 7%
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