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.0Cython 1.401.4016,644328  100% 0% 4% 1%
1.0Cython 1.411.4116,620328  1% 1% 0% 100%
1.0Cython 1.421.4416,612328  1% 94% 2% 6%
1.1Python 2 1.551.5616,564307  30% 5% 71% 3%
1.1Python 3 1.571.5720,924322  100% 1% 0% 1%
1.1Python 2 1.591.5916,576307  6% 4% 4% 100%
1.1Python 3 1.611.6125,236322  1% 1% 0% 99%
1.2Python 2 1.611.6216,812307  89% 11% 17% 5%
1.2Python 3 1.591.6225,476322  85% 1% 2% 12%
1.2Nuitka 1.651.6526,240322  0% 99% 1% 3%
1.2Nuitka 1.651.6726,372322  3% 96% 1% 1%
1.2Nuitka 1.681.6826,508322  100% 0% 3% 1%
1.2Python development version 1.701.7116,088322  11% 100% 5% 2%
1.2Python development version 1.731.7416,176322  59% 51% 5% 3%
1.3Python development version 1.751.7916,424322  93% 14% 7% 5%
1.5Pyston 2.082.0951,728307  2% 4% 3% 100%
1.5Pyston 2.142.1552,216307  98% 4% 10% 1%
2.4PyPy 2 3.363.3690,648307  2% 0% 100% 0%
2.5PyPy 2 3.483.4891,356307  2% 100% 1% 1%
2.5PyPy 2 3.453.4891,444307  30% 5% 67% 1%
2.9Pyston 3.994.0071,980307  10% 92% 6% 6%
14Jython 59.7519.57418,600307  86% 82% 67% 81%
15Jython 60.2220.61408,344307  84% 79% 72% 66%
15Jython 61.2521.02434,300307  84% 86% 72% 77%
20Numba 4.5528.0180,772335  100% 100% 100% 100%
20Numba 4.5528.2180,740335  100% 100% 100% 100%
21Numba 4.6629.2280,992335  100% 100% 100% 100%
missing benchmark programs
PyPy 3 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