Javascript templating shootoff (extended)

JavaScript performance comparison

Revision 34 of this test case created by Boris Moore

Info

Many engines gathered across all revisions of the original shoot off.

DO NOT LINK TO RAW.GITHUB.COM -- It will NOT work in latest firefox versions

Please:

Libraries (in no particular order):

Preparation code

 

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Mustache 0.5.0 DEV (compiled)
tpl.mustache(tpl.vars);
pending…
Kendo UI
tpl.kendo(tpl.vars);
pending…
Kendo UI (no "with" block)
tpl.kendo2(tpl.vars);
pending…
Handlebars
tpl.handlebars(tpl.vars)
pending…
Underscore
tpl.underscore(tpl.vars);
pending…
Resig Micro Templates
tpl.resig(tpl.vars)
pending…
Resig Micro Templates (No "with" block)
tpl.resig2(tpl.vars)
pending…
jqote2 (10/21/2010)
$.jqote(tpl.jqote, tpl.vars);
pending…
dot 0.1.7
tpl.dot(tpl.vars);
pending…
Hogan 1.0.3
tpl.hogan.render(tpl.vars)
pending…
Haml (7/16/11) (DOT2)
//WARNING: Compilation of the template fails in IE7!
tpl.doU(tpl.vars);
pending…
Pure
tpl.pure(tpl.vars);
pending…
Dust
dust.render('dusttmp', tpl.vars, function() {});
pending…
Blueimp 1.0.2
window.tpl.blueimp(tpl.vars);
pending…
eco
tpl.eco(tpl.vars);
pending…
ejs
tpl.ejs.render(tpl.vars);
pending…
Jade
tpl.jadeCmpld(tpl.vars);
pending…
KiTE
tpl.kite(tpl.vars);
pending…
Mote
tpl.mote(tpl.vars);
pending…
Template
// Template has an internal cache!
tpl.template.data.compiled.call(tpl.vars, tpl.vars);
//tpl.template.render(tpl.vars);
pending…
Underscore - (no "with" block)
tpl.underscoreNoWith(tpl.vars);
pending…
Vash
tpl.vash1( tpl.vars ); 
pending…
Vash without html escaping
tpl.vash2( tpl.vars );
pending…
Coffeescript interpolation
tpl.coffee( tpl.vars );
pending…
jsRender (jQuery Templates) full features
$.render.jsrFull(tpl.vars2);
pending…
jsRender (jQuery Templates) "allowCode"
$.render.jsrCode(tpl.vars);
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment