Skip to content

baryshev/template-benchmark

Repository files navigation

Node.JS template engines benchmark

Engines

Test environment

  • CPU: Intel Core i5 450M 2.4Ghz
  • OS: Ubuntu Server 12.04
  • Node.JS version: 0.8.21

Results

Rendering 100000 templates:

ECT
  Escaped   : 2180ms
  Unescaped : 133ms
  Total     : 2313ms

Dust
  Escaped   : 2547ms
  Unescaped : 363ms
  Total     : 2910ms

Hogan.js
  Escaped   : 3252ms
  Unescaped : 758ms
  Total     : 4010ms

Gaikan
  Escaped   : 4288ms
  Unescaped : 85ms
  Total     : 4373ms

Fest
  Escaped   : 4179ms
  Unescaped : 265ms
  Total     : 4444ms

EJS without `with`
  Escaped   : 4526ms
  Unescaped : 485ms
  Total     : 5011ms

doT
  Escaped   : 5329ms
  Unescaped : 82ms
  Total     : 5411ms

Swig
  Escaped   : 5020ms
  Unescaped : 407ms
  Total     : 5427ms

Underscore
  Escaped   : 5775ms
  Unescaped : 2486ms
  Total     : 8261ms

Eco
  Escaped   : 8512ms
  Unescaped : 991ms
  Total     : 9503ms

EJS
  Escaped   : 6316ms
  Unescaped : 2734ms
  Total     : 9050ms

Handlebars.js
  Escaped   : 7815ms
  Unescaped : 2573ms
  Total     : 10388ms

Jade without `with`
  Escaped   : 8566ms
  Unescaped : 2982ms
  Total     : 11548ms

CoffeeKup
  Escaped   : 4968ms
  Unescaped : 9983ms
  Total     : 14951ms

Jade
  Escaped   : 18330ms
  Unescaped : 12095ms
  Total     : 30425ms

Usage

git clone git://github.com/baryshev/template-benchmark.git
cd template-benchmark
npm install
node ./benchmark.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •