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 development version 1.031.0319,480322  100% 0% 1% 0%
1.0Python development version 1.051.0619,272322  2% 1% 100% 1%
1.0Python development version 1.041.0619,452322  3% 97% 1% 1%
1.0Python 3 1.061.0719,664322  10% 100% 3% 3%
1.0Python 2 1.071.0715,876307  0% 2% 2% 99%
1.1Python 2 1.071.0915,884307  1% 99% 1% 0%
1.1Python 2 1.091.0915,876307  4% 4% 2% 100%
1.1Python 3 1.071.1119,692322  83% 26% 3% 6%
1.1Python 3 1.091.1219,848322  6% 1% 99% 1%
1.1Cython 1.111.1320,000328  13% 10% 12% 92%
1.1Cython 1.141.1520,060328  14% 4% 99% 7%
1.1Nuitka 1.161.1620,088322  4% 6% 100% 1%
1.1Nuitka 1.181.1820,288322  8% 9% 100% 7%
1.2Cython 1.221.2319,804328  25% 18% 99% 17%
1.2Nuitka 1.191.2420,140322  2% 10% 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.9PyPy 2 2.942.9797,432307  11% 99% 14% 12%
2.9PyPy 2 2.922.9797,920307  14% 39% 15% 75%
3.0PyPy 2 3.033.0795,224307  19% 65% 25% 47%
4.1PyPy 3 4.204.24117,700322  14% 100% 9% 11%
4.2PyPy 3 4.334.39117,212322  12% 14% 90% 6%
4.3PyPy 3 4.454.48118,440322  15% 14% 15% 100%
missing benchmark programs
Jython No program
IronPython No program
Shedskin No program
MicroPython No program
Grumpy No program
Graal No program

 templates benchmark : Render Jinja2 template

 

Revised BSD license

  Home   Conclusions   License   Play