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 0.920.9216,340328  12% 100% 1% 0%
1.0Cython 0.930.9316,276328  10% 100% 2% 0%
1.0Cython 0.941.0016,240328  100% 2% 0% 1%
1.1Nuitka 1.001.0116,940322  6% 100% 0% 1%
1.1Nuitka 1.001.0117,104322  6% 100% 1% 0%
1.1Nuitka 1.021.0217,148322  5% 100% 12% 0%
1.1Python 3 1.031.0319,980322  8% 100% 1% 1%
1.1Python 3 1.041.0819,920322  71% 1% 33% 0%
1.2Python 2 1.071.0715,876307  0% 2% 2% 99%
1.2Python 2 1.071.0915,884307  1% 99% 1% 0%
1.2Python 2 1.091.0915,876307  4% 4% 2% 100%
1.2Python 3 1.101.1619,872322  5% 2% 98% 0%
1.6Numba 1.461.4677,500335  1% 5% 0% 95%
1.6Numba 1.461.4677,320335  1% 0% 0% 99%
1.6Numba 1.481.5077,492335  88% 11% 1% 2%
2.0Pyston 1.851.8558,360307  0% 100% 1% 1%
2.0Pyston 1.851.8658,092307  0% 1% 0% 100%
2.0Pyston 1.861.8758,356307  2% 5% 91% 3%
3.0PyPy 2 2.792.9695,444307  99% 1% 1% 1%
3.2PyPy 2 2.902.9995,308307  30% 5% 66% 4%
3.2PyPy 2 2.952.9795,124307  8% 18% 99% 2%
4.3PyPy 3 3.923.95105,444322  15% 11% 2% 89%
4.4PyPy 3 4.024.28107,276322  100% 9% 2% 1%
4.7PyPy 3 4.294.42110,616322  54% 1% 48% 1%
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