- weakness of this test: it does not verify the output for correctness
- ant.js v0.2.2
- art-template v3.0.3
- bh v4.2.1
- blueimp-tmpl v3.7.0
- CoffeeKup v0.3.1 (website)
- doT v1.1.1 (website)
- Dust v2.7.4 (website)
- Eco v1.0.3
- ECT v1.0.0 (website)
- EJS v2.5.3
- egs v0.3.1
- Fest v0.12.1
- Gaikan v2.0.2
- Handlebars.js v4.0.6 (website)
- Hogan.js v3.0.2 (website)
- htmling v0.0.7
- Jade v1.11.0 (website)
- kendo-ui-core v2016.3.1118
- lodash v4.17.2
- nunjucks v3.0.0
- plates v0.4.11
- Pug v0.1.0 (website)
- slm v0.6.0
- Swig v1.4.2
- Underscore v1.8.3 (website)
art-template: 4.13.2
babel-core: 6.21.0
babel-preset-react: 6.16.0
babel-register: 6.18.0
bh: 4.2.1
blueimp-tmpl: 3.7.0
coffeekup: 0.3.1
ect: 1.0.0
ejs: 2.5.5
fest: 0.12.1
gaikan: 2.0.2
handlebars: 4.0.6
hogan.js: 3.0.2
jsdom-global: 3.0.2
//TODO: jsrender: 1.0.3
lodash: 4.17.4
marko: 4.18.10
nai: 0.1.2
nunjucks: 3.0.0
plates: 0.4.11
pug: 2.0.0-beta6
slm: 2.0.0
//TODO: squirrelly: 7.4.0
//TODO: template7: 1.4.2
//TODO: twig: 1.13.3
underscore: 1.8.3
- CPU: Intel Core i7-2675QM 2.2Ghz 8GB
- OS: Windows 10 Pro 64-Bit
- Node.JS version: 10.16.0
-
removed dot dustjs-linkedin jade htmling domly swig due to bugs
-
removed eco egs fte.js jsdom kendo-ui react fast-react due to breaking changes
-
TODO: jsrender template7 squirrelly twig
Performance report for 10000 templates (win32): plates ( 2ms) - fastest Gaikan ( 4ms) - 100% slower ECT ( 16ms) - 700% slower Fest ( 172ms) - 8500% slower blueimp-tmpl ( 191ms) - 9450% slower Slm ( 243ms) - 12050% slower marko ( 249ms) - 12350% slower EJS without `with` ( 284ms) - 14100% slower Handlebars.js ( 291ms) - 14450% slower Hogan.js ( 358ms) - 17800% slower nai ( 410ms) - 20400% slower Underscore ( 448ms) - 22300% slower lodash ( 474ms) - 23600% slower Pug without `with` ( 521ms) - 25950% slower Pug ( 533ms) - 26550% slower BH ( 601ms) - 29950% slower Nunjucks ( 740ms) - 36900% slower CoffeeKup ( 821ms) - 40950% slower EJS ( 883ms) - 44050% slower artTemplate ( 1293ms) - 64550% slower
git clone https://github.com/HansHammel/template-benchmark.git
cd template-benchmark
npm install
node ./benchmark.js