baryshev / template-benchmark

111 stars 49 forks source link

Handlebars and doT might be faster since they use compiled code #13

Open tiye opened 11 years ago

tiye commented 11 years ago

Our team uses handlebars and is comparing several template engines for performance and. As I got from the docs that Handlebars and doT are very fast when they are precompiled. I think this case should be added into consideration.

bharatpatil commented 10 years ago

@jiyinyiyong - Yes I am also agree with you. Same benchmark result on my machine is as follows:

(my machine Macbook Pro 7,1 Mid 2010, Core 2 Duo 8GB RAM) In my case 1. Gaiken 2. Fest 3. doT I ran test 2 times and difference between them is as follows:

--- from_file +++ ECT @@ -1,74 +1,74 @@ ECT

bharatpatil commented 10 years ago

Is it possible to test it on browser?

tiye commented 10 years ago

@bharatpatil I think you should mark markup your result first, it's hard to read :-)

Jade

Escaped :   21922ms
Unescaped : 11340ms
Total :     33262ms
Escaped :   21938ms
Unescaped : 11806ms
Total :     33744ms

And it sould be like this in a terminal: https://github.com/baryshev/template-benchmark#results