templates benchmark N=1,000

Each chart bar shows how many times slower, one ↓ templates 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.0Python 2 1.041.0516,244307  100% 1% 1% 1%
1.0Python 2 1.051.0516,332307  0% 0% 0% 100%
1.0Python 2 1.051.0616,260307  0% 2% 0% 99%
1.1Python 3 1.151.1520,920322  100% 0% 0% 0%
1.1Python 3 1.151.1520,784322  1% 2% 100% 0%
1.1Python 3 1.151.1621,056322  2% 93% 3% 3%
1.1Python development version 1.181.1819,264322  99% 0% 1% 0%
1.1Python development version 1.181.1919,228322  0% 100% 1% 1%
1.1Nuitka 1.201.2021,492322  2% 1% 0% 100%
1.1Nuitka 1.201.2021,524322  1% 100% 1% 0%
1.2Python development version 1.181.2019,216322  94% 3% 2% 2%
1.2Nuitka 1.201.2121,416322  3% 38% 1% 60%
1.2Cython 1.241.2421,220328  1% 69% 1% 32%
1.2Cython 1.241.2421,324328  100% 1% 0% 2%
1.2Cython 1.251.2620,828328  0% 0% 2% 98%
1.4Numba 1.461.4677,500335  1% 5% 0% 95%
1.4Numba 1.461.4677,320335  1% 0% 0% 99%
1.4Numba 1.481.5077,492335  88% 11% 1% 2%
1.8Pyston 1.851.8558,360307  0% 100% 1% 1%
1.8Pyston 1.851.8658,092307  0% 1% 0% 100%
1.8Pyston 1.861.8758,356307  2% 5% 91% 3%
2.5PyPy 2 2.632.6392,408307  100% 0% 0% 0%
2.6PyPy 2 2.662.6792,116307  0% 100% 0% 0%
2.6PyPy 2 2.722.7492,332307  90% 1% 1% 10%
3.2PyPy 3 3.303.30102,784322  1% 1% 1% 100%
3.3PyPy 3 3.393.41105,188322  3% 2% 7% 89%
3.3PyPy 3 3.453.45105,116322  1% 1% 2% 100%
missing benchmark programs
Jython No program
IronPython No program
Shedskin No program
MicroPython No program
Grumpy No program

 templates benchmark : Render Jinja2 template

 

Revised BSD license

  Home   Conclusions   License   Play