What is the fastest template system for Python? See also:
-
Comprehensive benchmarks for various template include, extends and widget directives are here.
The benchmark is based on
wheezy.template big table test for rendering a 10x1000 HTML table in unicode. Latest available versions (April 2, 2015):
- bottle 0.12.8
- chameleon 2.22
- cheetah 2.4.4
- django 1.8
- jinja2 2.7.3
- mako 1.0.1
- durusworks qpy 1.2
- spitfire 0.7.15
- tenjin 1.1.1
- tornado 4.1
- web2py 2.0.9
- wheezy.template 0.1.159
Let setup virtualenv environment:
virtualenv env
env/bin/easy_install -O2 bottle chameleon cheetah django \
jinja2 mako tenjin webext tornado wheezy.html \
wheezy.template
Download
bigtable.py test:
wget https://bitbucket.org/akorn/wheezy.template/raw/tip/demos/bigtable/bigtable.py
And run it:
env/bin/python bigtable.py