Comment on Twitter releases new JS template engine: hogan.jsparentComments−devinus14yRight now Hogan seems to be slower and appears to have less features than Handlebars: http://jsperf.com/t-bench2/6−squarecog14yCouple hours later, Hogan is faster than Handlebars: http://jsperf.com/t-bench2/7−jarin14yI may be misunderstanding this, but that benchmark appears to be based on an in-browser compilation, while Hogan's advantage is the ability to precompile templates.−lukebaker14yThe compile happens in the setup of the benchmark. So the actual benchmark is testing the rendering speed of the compiled templates.−devinus14yHandlebars is also capable of precompiling AFAIK.
Comments
Right now Hogan seems to be slower and appears to have less features than Handlebars: http://jsperf.com/t-bench2/6
Couple hours later, Hogan is faster than Handlebars: http://jsperf.com/t-bench2/7
I may be misunderstanding this, but that benchmark appears to be based on an in-browser compilation, while Hogan's advantage is the ability to precompile templates.
The compile happens in the setup of the benchmark. So the actual benchmark is testing the rendering speed of the compiled templates.
Handlebars is also capable of precompiling AFAIK.