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.271,364182  100% 0% 4% 0%
4.4PyPy 3 #3 0.260.271,376182  0% 4% 0% 100%
4.5PyPy 3 #3 0.270.271,368182  0% 26% 75% 0%
4.6PyPy 2 #3 0.280.281,636181  0% 31% 71% 0%
4.6PyPy 2 #3 0.280.281,636181  100% 0% 0% 0%
4.7PyPy 2 #3 0.280.281,672181  100% 0% 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%
10PyPy 2 0.620.6295,072136  100% 0% 0% 2%
11PyPy 2 0.630.6393,580136  0% 2% 3% 100%
11Python 2 #3 0.660.677,184181  1% 0% 100% 0%
11Python 2 #3 0.660.677,136181  0% 1% 0% 100%
11Python 2 #3 0.660.677,128181  0% 0% 0% 100%
11Cython #3 0.670.679,656184  0% 100% 0% 3%
11Cython #3 0.670.679,564184  100% 0% 1% 0%
11Cython #3 0.670.679,680184  0% 0% 1% 100%
11Python 3 #3 0.670.679,756182  100% 0% 0% 1%
11Python 3 #3 0.670.679,508182  100% 0% 1% 0%
11Python 3 #3 0.670.679,516182  66% 1% 35% 0%
11Python development version #3 0.670.688,184182  100% 0% 0% 0%
11Python development version #3 0.670.688,348182  100% 1% 0% 0%
11Python development version #3 0.670.688,068182  100% 0% 0% 0%
11Nuitka #3 0.680.6910,832182  3% 100% 3% 0%
11Nuitka #3 0.690.6910,872182  1% 7% 100% 3%
12Nuitka #3 0.690.6911,240182  4% 13% 3% 100%
12PyPy 2 0.640.7284,900136  59% 0% 1% 37%
16Python 2 0.960.9622,904136  0% 0% 100% 1%
16Python 2 0.960.9622,880136  100% 0% 1% 0%
16Cython 0.960.9625,792138  1% 0% 1% 100%
16Cython 0.970.9726,236138  0% 100% 0% 1%
16Python 3 0.970.9725,920137  12% 0% 88% 0%
16Cython 0.970.9726,068138  100% 0% 0% 0%
16Python 3 0.970.9726,124137  100% 0% 2% 2%
16Nuitka 0.970.9826,736137  100% 3% 2% 3%
16Nuitka 0.980.9826,924137  100% 4% 3% 0%
17Python 3 0.971.0125,812137  1% 96% 3% 1%
17Python 2 0.991.0322,528136  1% 97% 1% 2%
18Nuitka 1.011.0726,780137  2% 3% 93% 5%
20Numba 1.201.2075,208160  99% 0% 0% 0%
20Numba 1.201.2075,420160  99% 1% 1% 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.286.2875,084110  0% 0% 100% 0%
105PyPy 3 #2 6.326.3274,968110  1% 0% 100% 0%
105PyPy 3 #2 6.326.3274,412110  0% 100% 0% 0%
108PyPy 2 #2 6.466.4784,188110  2% 99% 0% 0%
109PyPy 2 #2 6.546.5484,560110  1% 0% 100% 0%
109PyPy 2 #2 6.556.5584,564110  1% 2% 0% 100%
156Python development version #2 9.369.368,020110  0% 0% 100% 0%
156Python 2 #2 9.379.3738,864110  0% 14% 0% 86%
156Python 2 #2 9.379.3738,752110  0% 0% 100% 0%
156Python 2 #2 9.379.3738,856110  0% 62% 0% 39%
156Python development version #2 9.389.388,188110  100% 0% 0% 0%
156Python development version #2 9.389.397,864110  0% 0% 100% 0%
157Python 3 #2 9.449.459,552110  0% 100% 0% 1%
158Python 3 #2 9.459.459,436110  0% 100% 1% 0%
158Python 3 #2 9.459.469,296110  1% 0% 0% 100%
159Nuitka #2 9.569.5611,144110  100% 3% 2% 2%
160Nuitka #2 9.599.5911,176110  2% 99% 2% 3%
164Nuitka #2 9.859.8511,160110  79% 3% 20% 3%
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%
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,365MicroPython #3 81.8981.893,304182  0% 0% 100% 0%
1,365MicroPython #3 81.8981.893,076182  100% 0% 0% 0%
1,365MicroPython #3 81.8981.892,740182  0% 83% 0% 17%
1,763MicroPython #2 105.77105.774,244110  0% 0% 100% 0%
1,763MicroPython #2 105.80105.814,208110  0% 97% 0% 3%
1,764MicroPython #2 105.83105.834,252110  0% 0% 100% 0%
missing benchmark programs
Shedskin No program

 fibonacci benchmark : Calculate Fibonacci sequence

 

Revised BSD license

  Home   Conclusions   License   Play