Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
coffeekup Add CoffeeKup template engine Dec 6, 2012
dot
dust Benchmark update Nov 14, 2012
eco Benchmark update Nov 14, 2012
ect Update ECT version Dec 16, 2012
ejs-without-with add ejs without with test Dec 5, 2012
ejs Benchmark update Nov 14, 2012
fest Benchmark update Nov 14, 2012
gaikan Upgrade Gaikan to 1.3.4, Results for node v.0.8.21 Mar 2, 2013
handlebars Benchmark update Nov 14, 2012
hogan Benchmark update Nov 14, 2012
jade-without-with Update Jade templates Dec 11, 2012
jade Update Jade templates Dec 11, 2012
swig Benchmark update Nov 14, 2012
underscore Add Underscore benchmark Dec 26, 2012
README.md Upgrage ECT to 0.4.8 Mar 2, 2013
benchmark.js Upgrade Gaikan to 1.3.4, Results for node v.0.8.21 Mar 2, 2013
data.js Benchmark update Nov 14, 2012
package.json Upgrage ECT to 0.4.8 Mar 2, 2013

README.md

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
You can’t perform that action at this time.