[stringtemplate-interest] ST4 faster then ST3, some quick numbers

Collin Fagan collin.fagan at gmail.com
Wed Jan 19 18:03:08 PST 2011


Hi Everybody,

I did a quick benchmark comparing ST3 and ST4.

ST3 - Time: 34.6 milliseconds
ST4 - Time: 18.3 milliseconds

These numbers are the average time it takes to generate 10 'builder' classes
from 10 Swing classes averaged over 1000 trials. I tried to only benchmarked
the ST code and ignored all the I/O and reflection. The only exception is
that in both cases the template is loaded from a file using ST API calls. So
it looks like that means ST4 is 47% faster then ST3 according to my meatball
benchmarks.

!YAY for ST4!

Collin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110119/00a251ea/attachment.html 


More information about the stringtemplate-interest mailing list