I found some links where people do benchmarking:
Template-Engine-Chooser! – Tool to help select the right template engine for a project.
May be PURE — it allows to transform JSON into HTML with templates made from your existed html, not from separate template with special syntax.
From the PURE’s site:
Simple and ultra-fast templating tool
to generate HTML from JSON data
The representation (HTML) and the logic (JS)
remain totally separated
Works standalone or with dojo, DomAssistant, Ext JS,
jQuery, Mootools, Prototype, Sizzle and Sly
The best way to understand is to see what this library actually do: (from official demo)
All the demos are here
LinkedIn went with dust.js
Pick the template language that has an api and syntax you find most appealing. If you run in to performance problems, then you can look at alternatives.
Unless you are constructing tables with thousands of rows, you probably won’t notice a difference.
Personally I use Google’s Closure Templates. I chose it mainly because it also has a Java implementation. I have never done benchmarks.