Re: micro bench: FTL vs. GSP
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Assuming the output from the FTL version is correct, it's certainly more expedient to check with a profiler where GSP spends that extra time. Anyway, since Groovy is a full-blown programming language, and GSP is translated to Groovy (right?), I can imagine it comes with more overhead that starts to dominate for simple short-running programs. How many records are there in that HSQL database? What's if you display much more entries? Just in case the HSQL performance starts to dominate, what if you take HSQL out of the equation and use a plain Java list? -- Best regards, Daniel Dekany Tuesday, June 7, 2011, 2:28:34 PM, Daniel Henrique Alves Lima wrote: > Hi, everybody. > > In this post about a micro benchmark > (http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp), I > suggested FreeMarker templates as an alternative > (http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/comment-page-1/#comment-22088) > because, in my tests, FreeMarker seems really faster for this particular > case > (http://grails.1312388.n4.nabble.com/Template-GSP-vs-FTL-td3578664.html). > But as a developer, I learned to always double check my tests and > suspicious of any big differences in them. > > I must be unbiased here: Do you see any particular reason for > FreeMarker performs so fast? My .ftl templates are here: > > https://github.com/daniel-lima/blogpost_files/tree/master/grailsapp-fm-1.3.7/grails-app/views > > I also wondered about some weird bug that I might have accidentally > introduced (some thread issue?) to make FreeMarker seems faster than it > really is: > > http://code.google.com/p/grails-freemarker-tags-plugin/source/browse/#svn%2Ftrunk > > I'm just checking to see if there is any obvious problem in my > tests. I'm also waiting for "official" results: > http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp. > > > Thanks in advance. > > 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 > _______________________________________________ > FreeMarker-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freemarker-devel ------------------------------------------------------------------------------ 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