This is semi-off topic but does have a mod_perl
angle and since Larry Wall is an active member here
and wrote the torture script, I'm hoping he can 
offer some advice.

I have setup our corporate Web server with 2
httpd binaries, one with and the other without
mod_perl, each bound to a different IP.

We are currently using Concentric for our hosting
and I was curious to see how our new box performed
compared to Concentric. Both servers have duplicate
files from our Web site so I ran the torture script
and it turned out that Concentric was 100% faster,
but what bothered me was that the Bytes transfered 
from our mod_perl box was 3 times as much. And
the transfer rate was quite faster as well (100Kbps
compared to 20Kbps). All I was testing was our
main index.shtml which has a few include statements,
but againm it's identical on both servers.

At first I though this could mean that my mod_perl
httpd binary was sending more info, so I compiled an
httpd binary with no mod perl just for .html and
image files. I also created a very simple .shtml
file with nothgin more than a head/body and a line
of text. 

A second test for both servers revealed my new binary was
twice as fast this time but now the Bytes transfered
had duplicated on teh Concentric side. To make this
clear, here is the results:

-----
[root@rollercoaster /tmp]# ./torture.pl -t 100 -c 10 http://www.tradiant.com/test.shtml
** torture.pl version 1.05 starting at Fri Feb 11 15:43:43 2000
Transactions:           1000
Elapsed time:           64.579 sec
Bytes Transferred:      1112000 bytes
Response Time:          0.54 sec
Transaction Rate:       15.48 trans/sec
Throughput:             17219.28 bytes/sec
Concurrency:            8.4
Status Code 200:        1000
** torture.pl version 1.05 ending at Fri Feb 11 15:44:48 2000

[root@rollercoaster /tmp]# ./torture.pl -t 100 -c 10 
http://beta.tradiant.com/test.shtml
** torture.pl version 1.05 starting at Fri Feb 11 15:45:28 2000
Transactions:           1000
Elapsed time:           33.840 sec
Bytes Transferred:      90000 bytes
Response Time:          0.19 sec
Transaction Rate:       29.55 trans/sec
Throughput:             2659.56 bytes/sec
Concurrency:            5.5
Status Code 200:        1000
** torture.pl version 1.05 ending at Fri Feb 11 15:46:02 2000
-----

Please note that the testing was done on an independant 
machine on 1.5Mbit SDSL, so the test was not biased
towards one server or the other.

I shoudl also state that the mod_perl httpd binaries
had a total time of 110 seconds, which is quite
an increase versus the non mod_perl binary. Anyhow,
does anyone have an explination for the difference
in Bytes transfered?

Jim

Reply via email to