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  0% 0% 0% 100%
1.0Pyston #3 0.060.06?181  14% 0% 0% 100%
3.6PyPy 2 #3 0.220.221,504181  0% 0% 100% 0%
3.6PyPy 2 #3 0.220.221,516181  4% 0% 100% 0%
3.6PyPy 2 #3 0.220.221,576181  0% 0% 100% 0%
3.8PyPy 3 #3 0.220.231,348182  0% 100% 0% 4%
3.8PyPy 3 #3 0.220.231,336182  4% 0% 100% 4%
3.8PyPy 3 #3 0.220.231,348182  0% 4% 100% 0%
6.9PyPy 2 0.410.4187,068136  0% 100% 2% 2%
6.9PyPy 2 0.410.4187,068136  0% 0% 100% 0%
7.2Pyston 0.430.4355,228136  100% 0% 2% 0%
7.2Pyston 0.430.4355,100136  100% 0% 0% 0%
7.3Pyston 0.430.4457,344136  91% 11% 0% 0%
9.1PyPy 2 0.470.5580,480136  9% 21% 65% 7%
9.7PyPy 3 0.580.5881,568137  0% 2% 100% 0%
9.7PyPy 3 0.580.5881,416137  2% 0% 100% 0%
11PyPy 3 0.600.6499,936137  0% 3% 0% 98%
11Python 2 #3 0.660.677,128181  0% 0% 0% 100%
11Python 2 #3 0.660.677,136181  0% 1% 0% 100%
11Python 2 #3 0.660.677,184181  1% 0% 100% 0%
11Cython #3 0.670.679,564184  100% 0% 1% 0%
11Python 3 #3 0.670.679,552182  100% 1% 0% 1%
11Python 3 #3 0.670.679,548182  1% 100% 0% 0%
11Cython #3 0.670.679,656184  0% 100% 0% 3%
11Cython #3 0.670.679,680184  0% 0% 1% 100%
11Python 3 #3 0.670.679,516182  1% 0% 99% 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.6811,132182  1% 0% 1% 100%
11Nuitka #3 0.680.6811,220182  0% 3% 0% 100%
11Nuitka #3 0.680.6911,248182  0% 35% 0% 67%
16Python 2 0.960.9622,904136  0% 0% 100% 1%
16Python 2 0.960.9622,880136  100% 0% 1% 0%
16Python 3 0.960.9626,164137  1% 100% 1% 0%
16Cython 0.960.9625,792138  1% 0% 1% 100%
16Python 3 0.960.9625,640137  1% 100% 0% 0%
16Cython 0.970.9726,236138  0% 100% 0% 1%
16Cython 0.970.9726,068138  100% 0% 0% 0%
16Nuitka 0.970.9725,860137  1% 0% 0% 100%
16Nuitka 0.970.9725,900137  100% 0% 1% 0%
16Nuitka 0.970.9726,272137  100% 1% 1% 0%
17Python 3 0.981.0125,904137  91% 2% 5% 2%
17Python 2 0.991.0322,528136  1% 97% 1% 2%
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%
103PyPy 2 #2 6.196.2073,008110  0% 100% 0% 0%
104PyPy 3 #2 6.216.2166,956110  0% 0% 0% 100%
104PyPy 3 #2 6.216.2266,380110  100% 0% 0% 0%
104PyPy 3 #2 6.226.2266,388110  1% 0% 100% 0%
104PyPy 2 #2 6.226.2273,204110  100% 0% 0% 0%
104PyPy 2 #2 6.256.2573,188110  100% 0% 0% 0%
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%
156Python 3 #2 9.399.399,496110  100% 0% 0% 0%
157Python 3 #2 9.409.409,388110  0% 0% 0% 100%
157Python 3 #2 9.409.419,580110  0% 49% 0% 51%
158Nuitka #2 9.479.4711,204110  0% 0% 100% 0%
158Nuitka #2 9.499.4910,832110  0% 0% 100% 0%
162Nuitka #2 9.709.7011,188110  100% 0% 0% 0%
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