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.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%
5.0PyPy 3 #3 0.290.301,204182  72% 14% 20% 39%
5.0PyPy 3 #3 0.300.301,308182  17% 23% 100% 24%
5.0PyPy 3 #3 0.290.301,128182  17% 14% 33% 76%
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,128181  0% 0% 0% 100%
11Python 2 #3 0.660.677,184181  1% 0% 100% 0%
11Python 2 #3 0.660.677,136181  0% 1% 0% 100%
11Python development version #3 0.670.688,348182  100% 1% 0% 0%
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 3 #3 0.680.689,576182  0% 0% 100% 3%
11Cython #3 0.680.689,620184  100% 1% 0% 1%
11Cython #3 0.680.689,520184  12% 6% 0% 100%
11Python 3 #3 0.680.689,656182  51% 69% 6% 7%
11Cython #3 0.680.689,764184  12% 0% 93% 3%
11Python 3 #3 0.680.689,520182  1% 3% 100% 0%
12Nuitka #3 0.720.7211,112182  17% 99% 18% 17%
12PyPy 2 0.640.7284,900136  59% 0% 1% 37%
12Nuitka #3 0.730.7311,256182  21% 21% 100% 22%
12Nuitka #3 0.720.7311,124182  100% 19% 18% 15%
16Python 2 0.960.9622,904136  0% 0% 100% 1%
16Python 2 0.960.9622,880136  100% 0% 1% 0%
16Cython 0.980.9826,040138  4% 1% 2% 100%
16Cython 0.980.9826,056138  100% 0% 2% 2%
16Cython 0.980.9826,124138  2% 0% 100% 2%
16Python 3 0.980.9826,336137  2% 0% 100% 1%
16Python 3 0.980.9826,072137  0% 100% 0% 3%
17Nuitka 0.991.0026,748137  0% 100% 2% 2%
17Python 2 0.991.0322,528136  1% 97% 1% 2%
17Python 3 1.001.0526,496137  17% 4% 83% 2%
18Nuitka 1.051.0626,724137  25% 25% 100% 23%
18Nuitka 1.061.0827,384137  100% 22% 23% 21%
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%
108PyPy 2 #2 6.466.4784,188110  2% 99% 0% 0%
108PyPy 3 #2 6.436.4774,708110  7% 6% 5% 100%
109PyPy 2 #2 6.546.5484,560110  1% 0% 100% 0%
109PyPy 2 #2 6.556.5584,564110  1% 2% 0% 100%
113PyPy 3 #2 6.746.8074,700110  73% 29% 23% 27%
123PyPy 3 #2 7.257.3674,660110  66% 42% 56% 27%
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%
158Python 3 #2 9.449.469,348110  43% 58% 1% 1%
158Python 3 #2 9.469.489,548110  1% 1% 2% 100%
158Python 3 #2 9.479.499,628110  1% 3% 100% 2%
174Nuitka #2 10.3610.4511,208110  84% 30% 16% 17%
182Nuitka #2 10.8610.9310,976110  20% 85% 21% 40%
184Nuitka #2 10.9711.0610,936110  42% 79% 22% 25%
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,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