Is it that time of the year again? ;) Some of you may have stumbled upon
http://blog.curiasolutions.com/2009/10/the-great-web-technology-shootout-round-3-better-faster-and-shinier/ through the Planet TurboGears or otherwise and so did I. I thought it would be interesting to port the TurboGears 2 example to TG 1.1 and so I did: http://chrisarndt.de/projects/wf-shootout/ I only ran the benchmark for TG 1.1, 1.5 SVN (same code as for 1.1) and TG 2.0.3 on my system, but the results were interesting and I learned a few things. a) TG 1.x is about 25% faster than TG2 for this simple application. b) TG 1.5 is even faster than 1.1 but a bit inconsistent (e.g. Genshi very slow). c) Since TG 1.1 changed the template engine option loading mechanism, it is now much easier to integrate alternative template engine plugins. For example, I included the code for a Jinja2 buffet plugin, since the Jinja2 distribution does not seem to contain such a plugin any more. It requires that you set some options in the TG config, which, thanks to the afore mentioned change, is not a problem. I'll write some docs on using Jinja2 with TG1 on the wiki soon. d) Jinja2 is consistently marginally faster than Mako for this application. e) Porting a simple TG2 application like this to TG 1 (not the other way round!) was very easy! :) No authentication features used here, though. Feel free to download the code and experiment for yourself. A script to run the apache benchmark tool on the application is included in the package. Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

