Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dustjs: what about performance?

I like syntax of this template library for JS. I'm going to use it in Node.js script, so, performance is quite important. Have anybody tried this one? (Their web-site works too slow to make me think their library works fast enough :) ).

like image 468
Ben Usman Avatar asked Jun 03 '11 13:06

Ben Usman


3 Answers

Live performance comparisons of dust to other templating engines: http://akdubya.github.com/dustjs/benchmark/index.html. It basically blows the other libraries away (Mustache, Handlebars, and jQuery Templates).

If you aren't satisfied with those results, roll your own benchmark.


As for the slowness of the Dust "website" — it's just a github project page. I didn't notice any performance issues with the site.

like image 112
Matt Ball Avatar answered Oct 05 '22 20:10

Matt Ball


Simple answer, checkout their benchmarks. The results are pretty staggering.

like image 23
pixelbobby Avatar answered Oct 05 '22 21:10

pixelbobby


According to many tests on jsperf such as JavaScript template language shootoff the recommended answers get "blown" away by other template engines. I use doT as it can be customized to use <% %>, <%= %> and <%- %> tags.

like image 21
mgutz Avatar answered Oct 05 '22 20:10

mgutz