Home | Articles | CV (pdf)
<2011-05-23> by Lorenzo Bolla

Javascript templating benchmark

There are many popular libraries to do templating in Javascript.

The most popular are:

I decided to benchmark them, so I created a simple "hello world" test. You can find it here.

As usual, the results are interesting. Here are, on my box:

Firefox 3.6

Chrome 11.0

Safari 5.0

JQuery Template

297ms

138ms

113ms

Pure

309ms

43ms

36ms

Resig

309ms

41ms

41ms

Trimpath

15ms

5ms

6ms

JQote2

7ms

1ms

6ms

A part from the obvious result that Firefox is the slowest browser of all, I'm astonished by the excellent performance of JQote2!