Re: Performance of WM

Marc Palmer <[email protected]> Sun, 17 Jul 2005 13:42:40 +0100
Newsgroups gmane.comp.java.webmacro.user
Organization AnyWare Ltd.
Message-ID <[email protected]>
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    [email protected]
			
Wangjammers - Java, J2ME and Web Consultants
   ~ http://www.wangjammers.org/



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click