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.060.06?181  0% 0% 0% 100%
1.0Pyston #3 0.060.06?181  14% 0% 0% 100%
1.0Pyston #3 0.060.06?181  0% 0% 0% 100%
4.4PyPy 3 #3 0.260.261,316182  8% 0% 0% 100%
4.4PyPy 3 #3 0.260.261,280182  4% 0% 100% 0%
4.5PyPy 2 #3 0.270.271,628181  4% 100% 4% 0%
4.5PyPy 2 #3 0.270.271,616181  4% 0% 0% 96%
4.6PyPy 3 #3 0.260.271,312182  100% 0% 4% 4%
4.8PyPy 2 #3 0.270.291,572181  7% 93% 0% 0%
7.2Pyston 0.430.4355,100136  100% 0% 0% 0%
7.2Pyston 0.430.4355,228136  100% 0% 2% 0%
7.3Pyston 0.430.4457,344136  91% 11% 0% 0%
11Python 2 #3 0.670.677,240181  1% 100% 3% 0%
11Python 2 #3 0.670.677,384181  12% 2% 6% 100%
11Python 2 #3 0.670.677,284181  99% 2% 3% 6%
11Cython #3 0.670.679,580184  1% 1% 100% 4%
11Python development version #3 0.670.688,184182  100% 0% 0% 0%
11Python development version #3 0.670.688,068182  100% 0% 0% 0%
11Python development version #3 0.670.688,348182  100% 1% 0% 0%
11Cython #3 0.670.689,416184  100% 7% 6% 3%
11Python 3 #3 0.680.689,576182  0% 0% 100% 3%
11Cython #3 0.680.689,400184  1% 3% 1% 100%
11Python 3 #3 0.680.689,656182  51% 69% 6% 7%
11Python 3 #3 0.680.689,520182  1% 3% 100% 0%
11Nuitka #3 0.680.6910,884182  1% 100% 1% 3%
11Nuitka #3 0.690.6911,008182  100% 3% 1% 4%
11Nuitka #3 0.690.6910,888182  3% 3% 100% 4%
16Cython 0.970.9826,488138  100% 2% 0% 2%
16Python 2 0.970.9824,096136  1% 2% 100% 4%
16Python 2 0.980.9824,192136  3% 100% 1% 4%
16Cython 0.980.9826,496138  4% 3% 100% 1%
16Python 3 0.980.9826,072137  0% 100% 0% 3%
16Python 3 0.980.9826,336137  2% 0% 100% 1%
16Nuitka 0.980.9827,112137  40% 3% 2% 64%
16Nuitka 0.980.9927,252137  5% 41% 9% 61%
16Nuitka 0.990.9926,744137  2% 100% 2% 3%
17Python 2 0.981.0324,012136  2% 3% 10% 92%
17Python 3 1.001.0526,496137  17% 4% 83% 2%
17Cython 1.011.0526,616138  39% 10% 54% 15%
20Numba 1.201.2075,420160  99% 1% 1% 0%
20Numba 1.201.2075,208160  99% 0% 0% 0%
20Numba 1.201.2074,964160  0% 1% 0% 100%
30Jython #3 4.421.78246,336181  79% 62% 61% 47%
30Jython #3 4.571.80255,888181  73% 69% 61% 51%
32Jython #3 4.771.90272,324181  73% 84% 58% 36%
56Pyston #2 3.373.3759,552110  0% 82% 0% 18%
56Pyston #2 3.373.3759,376110  0% 0% 100% 0%
57Pyston #2 3.393.3959,460110  0% 62% 0% 38%
98IronPython #3 5.865.8653,032181  100% 0% 0% 0%
98IronPython #3 5.865.8650,872181  0% 0% 100% 0%
98IronPython #3 5.865.8755,276181  0% 100% 0% 0%
105PyPy 3 #2 6.296.3275,132110  6% 1% 1% 100%
105PyPy 3 #2 6.316.3274,656110  6% 1% 1% 100%
106PyPy 3 #2 6.316.3474,724110  6% 1% 3% 100%
109PyPy 2 #2 6.546.5586,628110  5% 1% 100% 1%
111PyPy 2 #2 6.496.6986,892110  57% 0% 45% 1%
113PyPy 2 #2 6.476.8187,056110  100% 1% 1% 2%
156Python development version #2 9.369.368,020110  0% 0% 100% 0%
156Python development version #2 9.389.388,188110  100% 0% 0% 0%
156Python development version #2 9.389.397,864110  0% 0% 100% 0%
158Python 3 #2 9.449.469,348110  43% 58% 1% 1%
158Python 2 #2 9.469.4738,896110  2% 2% 3% 100%
158Python 3 #2 9.469.489,548110  1% 1% 2% 100%
158Python 3 #2 9.479.499,628110  1% 3% 100% 2%
159Python 2 #2 9.509.5138,904110  2% 100% 2% 2%
159Nuitka #2 9.529.5311,116110  3% 68% 2% 34%
159Python 2 #2 9.539.5438,952110  37% 21% 49% 3%
160Nuitka #2 9.599.6010,940110  77% 2% 25% 2%
160Nuitka #2 9.609.6110,800110  50% 53% 3% 4%
256Jython #2 18.9415.34323,352110  20% 37% 28% 38%
256Jython #2 19.0615.35317,228110  26% 37% 24% 38%
257Grumpy #2 38.5515.39498,660110  65% 71% 65% 64%
263Grumpy #2 39.4615.78519,192110  65% 71% 63% 66%
265Grumpy #2 38.8115.90550,940110  71% 69% 67% 68%
302Jython #2 22.5918.13356,048110  21% 35% 31% 37%
538Graal #2 32.3632.26391,820110  4% 84% 3% 18%
544Graal #2 32.7032.63390,972110  45% 3% 60% 4%
546Graal #2 32.8232.74392,508110  8% 4% 96% 6%
1,009IronPython #2 77.3760.52105,408110  38% 65% 0% 24%
1,009IronPython #2 77.9460.55106,696110  70% 37% 14% 7%
1,009IronPython #2 77.4360.55109,804110  26% 41% 44% 16%
1,371MicroPython #3 82.0482.292,876182  9% 71% 4% 29%
1,374MicroPython #3 82.1482.422,788182  60% 19% 8% 39%
1,391MicroPython #3 82.9083.482,868182  72% 21% 47% 21%
1,779MicroPython #2 106.42106.734,112110  20% 7% 36% 53%
1,835MicroPython #2 109.54110.104,328110  35% 19% 69% 33%
1,839MicroPython #2 109.65110.324,180110  55% 22% 63% 20%
missing benchmark programs
Shedskin No program

 fibonacci benchmark : Calculate Fibonacci sequence

 

Revised BSD license

  Home   Conclusions   License   Play