From: Marc P. <ma...@an...> - 2005-07-17 12:43:01
|
Dominik wrote: > Hy, > i searched the wiki but didn't find any information about the performance of > webmacro. How is it compared to a plain-output (via println()) servlet? And, > perhaps somebody knows, how is it compared to a php script with a > template-engine like smarty or other. I don't believe we have any stats but: 1. println() - will be faster but probably only for trivial cases unless you write some really complicated println() code, because WM has lots of caching and so on and offers much more functionality so you can't really compare this. 2. PHP - having used PHP I am pretty sure it will be quite a bit slower, as PHP as I understand it is always interpreted, and Java code is typically running with JIT compilation. The difference between WM and PHP may be less if the PHP templating caches an abstract syntax tree of the template, but I'm not sure they do. It would be very ugly writing something like that in PHP... PHP is really a "quick fix" language, i.e. for hacking sites together quickly or using existing "Portal" tools like PHP Nuke. Serious things with scalability and performance considerations are much better done in Java, but take a bit longer to develop. -- Marc Palmer wj...@wa... Wangjammers - Java, J2ME and Web Consultants ~ http://www.wangjammers.org/ |