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.

     sortsortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Cython 1.051.0519,840328  0% 99% 1% 1%
1.0Cython 1.051.0619,920328  2% 100% 3% 3%
1.0Cython 1.051.0919,888328  95% 4% 3% 3%
1.0Python 2 1.071.0715,876307  0% 2% 2% 99%
1.0Python 2 1.071.0915,884307  1% 99% 1% 0%
1.0Python 2 1.091.0915,876307  4% 4% 2% 100%
1.1Nuitka 1.101.1120,236322  100% 1% 0% 2%
1.1Nuitka 1.121.1720,204322  4% 93% 4% 3%
1.1Python 3 1.131.1320,156322  1% 11% 100% 1%
1.1Nuitka 1.141.1420,320322  0% 100% 1% 2%
1.1Python 3 1.141.1420,024322  45% 11% 58% 1%
1.1Python 3 1.141.1520,084322  2% 10% 100% 4%
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.8PyPy 2 2.903.0698,336307  7% 98% 9% 4%
2.8PyPy 2 2.902.9397,532307  100% 13% 7% 7%
3.0PyPy 2 3.153.2496,596307  17% 50% 13% 66%
3.9PyPy 3 4.104.12113,920322  6% 9% 98% 1%
3.9PyPy 3 4.134.16112,664322  2% 10% 100% 1%
4.0PyPy 3 4.154.19112,752322  95% 14% 2% 2%
missing benchmark programs
Python development version No program
Jython No program
IronPython No program
Shedskin No program
MicroPython No program
Grumpy No program
Graal No program
RustPython No program

 templates benchmark : Render Jinja2 template

 

Revised BSD license

  Home   Conclusions   License   Play