You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matt Sergeant <ma...@sergeant.org> on 2000/06/11 17:26:30 UTC

Re: Perl vs Java

On Sun, 11 Jun 2000, dreamwvr wrote:

> hi,
>    this could be a can of worms but anyhow here goes. Has anyone timed the
> actual efficiency of Perl vs Java? Reason being is i wrote a state engine as 
> a perl module that seemed quite fast ~ 0.33 to 0.54 of a second for slurping 
> up values. With recall being about .25 to .35 of a second which seemed quit fast
> to me. Then i was shown a jsp page which i really don't know much about..
> reminded me actually of SSI syntax wise. Well it was doing the same thing using 
> Java persistance objects and seemed very fast. Any idea how the languages
> compare as always trying to use the best tool for the job. 

There are posts in the archive about this. Here's a quick summary:

You can make Java slow. You can make mod_perl slow.
Java (servlets, jsp, etc) can use a lot of memory. mod_perl can use a lot
of memory.
Servlets can be very fast. mod_perl can be very fast.

I think that covers most of the arguments.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


Re: Perl vs Java

Posted by dreamwvr <dr...@dreamwvr.com>.
hi,
   thanks.. well i walked into that one;-)) anyways really was trying to see
which was better from a web serving point of view.. in maintaining state 
between cgi pages.. since i have not done any real java proggies since 
the first year of jdk coming out i really was surprised how fast it was since
my previous experience had been that java was very slow. yeah..yeah
the args about scripting vs compiled to go on forever but just wanted to 
see which offered the best efficiency according to tests that had been 
made using basically the same i/o . TIA

Re: Perl vs Java

Posted by Perrin Harkins <pe...@primenet.com>.
On Sun, 11 Jun 2000, Matt Sergeant wrote:
> There are posts in the archive about this. Here's a quick summary:
> 
> You can make Java slow. You can make mod_perl slow.
> Java (servlets, jsp, etc) can use a lot of memory. mod_perl can use a lot
> of memory.
> Servlets can be very fast. mod_perl can be very fast.
> 
> I think that covers most of the arguments.

This cracked me up!  Thanks Matt.
- Perrin