Javascript templating shootoff (extended)

JavaScript performance comparison

Revision 54 of this test case created

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.2.0
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…
Linked-in 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…
jsRender (jQuery Templates)
$.render.jsr(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…
grips (direct partial, compiled)
// NOTE: this variation of the grips test is currently subject to a performance "bug" in FF.
// http://jsperf.com/functions-created-globally-or-via-new-function

tpl.grips( tpl.vars );
pending…
grips (direct partial, pre-compiled)
// NOTE: this variation of the previous grips test is only present to get around this performance "bug" in FF, otherwise the "compiled" test for grips would have been sufficient.
// http://jsperf.com/functions-created-globally-or-via-new-function

tpl.grips2( tpl.vars );
pending…
doT precompiled
tpl.dot2(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