Benchmarking Handlebars.java vs Freemarker

1,195 views
Skip to first unread message

Karan Pradhan

unread,
Mar 21, 2016, 2:56:01 PM3/21/16
to handlebars.java
Hi,

I was trying to benchmark my old template framework against handlebars.java I was using exactly similar templates in both the cases. For the freemarker template I was injecting the POJO object where as for the handlers.java I was injecting a json string using Jackson JSONNode class. But I was kind of surprised by the difference in performance. For freemarker I could render 10000 templates in about 900 ms where as the same number of templates took about 10000 ms for handlebars on my machine. Am I biasing my tests here or is handlebars.java slower than freemarker ?

Thanks!

edgar

unread,
Mar 21, 2016, 3:33:22 PM3/21/16
to handlebars.java
That doesn't sound right.

Here is a performance test: https://github.com/mbosecke/template-benchmark with a "decent/normal" scenario measured with JMH

Handlebars isn't the fastest, but is faster than Freemarker.

Thanks.
Reply all
Reply to author
Forward
0 new messages