Re: micro bench: FTL vs. GSP

Daniel Henrique Alves Lima <[email protected]>
Newsgroups gmane.comp.web.freemarker.devel
Message-ID <[email protected]>
        Hi, Daniel. Thanks for your help!

        I have no idea if GSPs are translated to Groovy. Most of the
time I use FreeMarker or JSP... :-/
        There are only 4 differences between
https://github.com/daniel-lima/blogpost_files/tree/master/grailsapp-fm-1.3.7
and https://github.com/daniel-lima/blogpost_files/tree/master/grailsapp-1.3.7
:

- application.properties
- grails-app / conf / Config.groovy
- grails-app / views / products / index.gsp (index.ftl)
- grails-app / views / shared / _product.gsp (_products.ftl)


        So anything odd in the GSP version will be equally odd in the
FTL version :-)

        The database is initially empty and I think (I'm away from my
computer right now) it remains empty. The data are created here:

https://github.com/daniel-lima/blogpost_files/blob/master/grailsapp-fm-1.3.7/src/java/s/Service.java

        I'm not sure why the author took this approach, but...


        The products will be loaded here:

https://github.com/daniel-lima/blogpost_files/blob/master/grailsapp-fm-1.3.7/grails-app/controllers/grailsapp/ProductsController.groovy


        right before the rendering of index.ftl.


        I usually don't care much about micro benchmarking, but
FreeMarker has outperformed GSP and this make me wonder if I could
have introduced a nasty bug in freemarker-tags.


        Best regards,

                Daniel.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.