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.
Just as a matter of interested, I benchmarked it on my desktop, running
AOLServer. AOLServer uses tcl as it's interpreter, and you can do ASP/PHP
style "embedded TCL" using "ADP", so I made a file called test.adp:
<%
ns_puts "<HTML><BODY BGCOLOR=\"#ff5050\">"
ns_puts "this is a test"
ns_puts "</BODY></HTML>"
%>
And did the same. The answer: 12.733 seconds. This was on a dual-celeron
400, with 96MB RAM.
On the same machine, I re-ran the test on cgi-perl, mod perl, and php.
The results:
cgi-perl: 144 seconds
mod perl:
Kate
--
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen
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!