Rendering 50000 templates:
doT
Escaped : 952ms
Unescaped : 21ms
Total : 973ms
Jade
Escaped : 1649ms
Unescaped : 745ms
Total : 2394ms
Jade without `with`
Escaped : 999ms
Unescaped : 196ms
Total : 1195ms
Swig
Escaped : 1376ms
Unescaped : 104ms
Total : 1480ms
Nunjucks
Escaped : 1025ms
Unescaped : 14562ms
Total : 15587ms
Performance report for 50000 templates (darwin):
doT ( 973ms) - fastest
Jade without `with` ( 1195ms) - 23% slower
Swig ( 1480ms) - 52% slower
Jade ( 2394ms) - 146% slower
Nunjucks (15587ms) - 1502% slower
git clone git://github.com/th0r/template-benchmark.git
cd template-benchmark
npm install
node ./benchmark.js