LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] simple Perl tests

[ILUG] simple Perl tests

John P. Looney jplooney-ilug at online.ie
Fri Jan 14 16:02:47 GMT 2000


On Fri, Jan 14, 2000 at 10:40:54AM +0000, Donncha O Caoimh mentioned:
> cgi-bin:
> The load on the machine went up to 73.26 and the tests took 53 seconds.
> Out of the 10000 requests, 4471 failed. It did 185.36 requests per
> second, and transfered 87.68 kb/s.
> 
> Mod_perl:
> The load on the machine went to 5.9 and the tests took 35 seconds. All
> requests completed.
> It did 285.19 requests per second, and transfered 61.32 kb/s.
> 
> PHP3:
> As a comparision, I created the same script in php3. 
> The load on the machine went up to 18.69 and the tests took 35 seconds.
> All requests completed. It did 284.62 requests per second, and
> transfered 61.20 kb/s.

 There were a few problems with the last set of tests. First off, the
headers that the scripts had been returning were dodgy, so it was aborting
the connection. Also, I'd left ldap defined for host & name lookups in
/etc/nsswitch.conf. And LDAP servers get stressed when you hit them a lot,
and refuse to talk to you :)

 So here they are again, and should be considered a lot more accurate.

    cgi-bin Perl:  122 seconds   81 hits/sec (load 20)
    mod perl    :   34 seconds  294 hits/sec (load 18)
    PHP         :  270 seconds   36 hits/sec (load 28)
    AolServer   :   14          686 hits/sec (load  8)

 AolServer has a builtin tcl interpreter to do the job of modperl. The
results sorta speak for themselves. I'm not sure what's up with PHP. I'm
using just a small embedded PHP script, and not an external interpreter.
Whatever it's doing, it's killing it.

 By getting rid of some stuff from the php3.ini file (stuff like Horde
inculde dirs, and prepended files), and recompiling the binary for pentium
II optimisations, I got it down to about 90 seconds. But that's still
pretty bad for PHP3.

 Either way, AOLserver rocks.

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell