[ILUG] simple Perl tests
John P . Looney
valen at tuatha.org
Mon Jan 17 10:28:42 GMT 2000
On Fri, Jan 14, 2000 at 10:40:54AM +0000, Donncha O Caoimh mentioned:
> 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.
> 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.
> 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.
Either way, AOLserver rocks.
Microsoft. The best reason in the world to drink beer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 232 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/ilug/attachments/20000117/0810d249/attachment.pgp
More information about the ILUG