baryshev/template-benchmark — pull request #4 by atma (2012-12-18 03:23:09+00:00)
Title: Swig tuning, autoescape: false

Swig has a strange behaviour with autoescape. it is highly recommended to leave this on in production but when it switched off and escaping forced via the escape filter swig has an incredible results.

ECT
Escaped : 1579ms
Unescaped : 78ms
Total : 1657ms

Dust
Escaped : 1831ms
Unescaped : 250ms
Total : 2081ms

Hogan.js
Escaped : 2128ms
Unescaped : 510ms
Total : 2638ms

Fest
Escaped : 2914ms
Unescaped : 160ms
Total : 3074ms

Handlebars.js
Escaped : 2999ms
Unescaped : 176ms
Total : 3175ms

EJS without `with`
Escaped : 3333ms
Unescaped : 269ms
Total : 3602ms

doT
Escaped : 3553ms
Unescaped : 45ms
Total : 3598ms

Swig
Escaped : 259ms
Unescaped : 260ms
Total : 519ms

Eco
Escaped : 5784ms
Unescaped : 487ms
Total : 6271ms

EJS
Escaped : 4353ms
Unescaped : 1848ms
Total : 6201ms

Jade without `with`
Escaped : 5883ms
Unescaped : 2110ms
Total : 7993ms

CoffeeKup
Escaped : 2774ms
Unescaped : 5990ms
Total : 8764ms

Jade
Escaped : 10747ms
Unescaped : 7282ms
Total : 18029ms