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  14% 0% 0% 100%
1.0Pyston #3 0.060.06?181  0% 0% 0% 100%
1.0Pyston #3 0.060.06?181  0% 0% 0% 100%
4.3PyPy 2 #3 0.250.261,332181  100% 0% 4% 0%
4.3PyPy 2 #3 0.260.261,312181  4% 4% 0% 100%
4.4PyPy 2 #3 0.260.261,272181  100% 4% 7% 0%
4.4PyPy 3 #3 0.260.271,112182  4% 0% 4% 100%
4.6PyPy 3 #3 0.270.271,136182  7% 11% 7% 100%
5.5PyPy 3 #3 0.290.331,012182  28% 29% 32% 94%
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 development version #3 0.670.679,144182  3% 100% 3% 0%
11Python development version #3 0.670.679,308182  99% 0% 2% 1%
11Python 2 #3 0.670.677,284181  99% 2% 3% 6%
11Python 3 #3 0.670.679,364182  5% 100% 6% 2%
11Python 3 #3 0.670.679,284182  9% 1% 100% 5%
11Python 3 #3 0.670.689,420182  4% 9% 100% 10%
11Python development version #3 0.680.689,212182  1% 5% 0% 99%
11Nuitka #3 0.680.6810,420182  5% 1% 1% 100%
11Nuitka #3 0.680.6810,392182  9% 9% 0% 100%
11Cython #3 0.680.689,268184  10% 14% 7% 100%
11Nuitka #3 0.680.6810,380182  9% 1% 3% 100%
12Cython #3 0.680.709,068184  81% 24% 22% 40%
12Cython #3 0.690.709,172184  80% 59% 28% 37%
16Python development version 0.960.9626,428137  100% 1% 1% 0%
16Cython 0.970.9727,100138  0% 2% 100% 0%
16Python development version 0.970.9726,524137  99% 2% 3% 3%
16Cython 0.970.9726,712138  3% 2% 100% 4%
16Python 2 0.970.9824,096136  1% 2% 100% 4%
16Python 2 0.980.9824,192136  3% 100% 1% 4%
16Cython 0.980.9826,756138  100% 5% 3% 3%
16Python 3 0.980.9826,764137  7% 100% 3% 2%
16Nuitka 0.980.9827,628137  7% 3% 5% 100%
17Nuitka 0.980.9927,396137  13% 2% 92% 0%
17Python 3 0.971.0226,780137  100% 5% 3% 5%
17Python 2 0.981.0324,012136  2% 3% 10% 92%
17Python development version 0.991.0426,372137  10% 96% 51% 4%
18Python 3 0.991.0826,756137  13% 6% 88% 8%
19Nuitka 1.041.1227,744137  8% 4% 5% 91%
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%
109PyPy 2 #2 6.506.5486,864110  5% 96% 3% 2%
110PyPy 2 #2 6.536.5886,948110  77% 2% 26% 2%
113PyPy 3 #2 6.716.7576,872110  11% 100% 11% 11%
124PyPy 2 #2 7.097.4687,200110  65% 32% 61% 25%
137PyPy 3 #2 7.918.1976,580110  61% 58% 62% 80%
153PyPy 3 #2 8.529.1976,660110  64% 88% 81% 65%
157Python development version #2 9.409.409,136110  1% 100% 1% 1%
157Python development version #2 9.409.429,012110  1% 1% 0% 100%
157Python development version #2 9.429.439,024110  3% 76% 4% 25%
158Python 2 #2 9.469.4738,896110  2% 2% 3% 100%
159Python 2 #2 9.509.5138,904110  2% 100% 2% 2%
159Python 2 #2 9.539.5438,952110  37% 21% 49% 3%
162Nuitka #2 9.719.7210,284110  7% 2% 100% 1%
163Nuitka #2 9.759.7610,356110  7% 2% 100% 2%
163Nuitka #2 9.789.7910,216110  7% 4% 100% 2%
166Python 3 #2 9.969.989,188110  12% 9% 100% 9%
167Python 3 #2 9.9910.029,184110  14% 74% 12% 39%
168Python 3 #2 9.6210.099,104110  100% 4% 5% 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%
545Graal #2 32.7232.70398,936110  99% 3% 4% 3%
545Graal #2 32.7732.72400,740110  5% 56% 5% 47%
548Graal #2 32.9132.87398,904110  99% 5% 5% 5%
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,363MicroPython #3 81.7481.793,180182  0% 0% 100% 0%
1,363MicroPython #3 81.7481.793,184182  4% 0% 96% 0%
1,364MicroPython #3 81.7581.823,084182  0% 0% 0% 100%
1,771MicroPython #2 106.17106.254,224110  2% 0% 99% 0%
1,771MicroPython #2 106.17106.274,172110  0% 71% 0% 29%
1,772MicroPython #2 106.25106.344,160110  62% 0% 39% 0%
missing benchmark programs
Shedskin No program

 fibonacci benchmark : Calculate Fibonacci sequence

 

Revised BSD license

  Home   Conclusions   License   Play