Awesome
Node.JS template engines benchmark
Engines
Test environment
- CPU: 2,7 GHz Intel Core i7
- OS: OS X 10.10
- io.js version: v2.0.0
Results
Rendering 100000 templates:
Slm
Escaped : 1169ms
Unescaped : 46ms
Total : 1215ms
ECT
Escaped : 1202ms
Unescaped : 71ms
Total : 1273ms
Dust
Escaped : 1586ms
Unescaped : 293ms
Total : 1879ms
Hogan.js
Escaped : 1513ms
Unescaped : 205ms
Total : 1718ms
Gaikan
Escaped : 1419ms
Unescaped : 46ms
Total : 1465ms
Fest
Escaped : 1884ms
Unescaped : 199ms
Total : 2083ms
EJS without `with`
Escaped : 2567ms
Unescaped : 653ms
Total : 3220ms
doT
Escaped : 2267ms
Unescaped : 40ms
Total : 2307ms
Swig
Escaped : 3682ms
Unescaped : 689ms
Total : 4371ms
Underscore
Escaped : 2275ms
Unescaped : 1541ms
Total : 3816ms
EJS
Escaped : 5419ms
Unescaped : 2795ms
Total : 8214ms
Eco
Escaped : 3879ms
Unescaped : 793ms
Total : 4672ms
Handlebars.js
Escaped : 2227ms
Unescaped : 300ms
Total : 2527ms
Jade without `with`
Escaped : 2434ms
Unescaped : 679ms
Total : 3113ms
CoffeeKup
Escaped : 3960ms
Unescaped : 6202ms
Total : 10162ms
Jade
Escaped : 8085ms
Unescaped : 5389ms
Total : 13474ms
Usage
git clone git://github.com/baryshev/template-benchmark.git
cd template-benchmark
npm install
node ./benchmark.js