Perrin Harkins wrote: > Josh Chamas wrote: > >> I just did a benchmarks to compare mod_perl + apache versions 1 & 2. > > > Cool. > > Any idea why bytes/hit is lower on apache 2? Are some headers being > omitted? >
Looks like its the Server tokens, see below. 32 bytes! Maybe on a benchmark this small, this makes a difference? *sigh* So I run it again with ServerTokens Min, and get the same results. :) Still something different on the mod_perl headers, looks like mod_perl 2.x is setting Content-Length where it didn't use to. **** Apache/1.3.26 **** Test Name Test File Hits/sec # of Hits Time(sec) secs/Hit Bytes/Hit Mem(KB) --------- --------- --------- --------- --------- --------- --------- --------- HTML static hello.htm 1417.5 42531 30.00 0.000705 250 5000 mod_perl handler hello.ben 939.1 28181 30.01 0.001065 134 7244 **** Apache/2.0.40 **** Test Name Test File Hits/sec # of Hits Time(sec) secs/Hit Bytes/Hit Mem(KB) --------- --------- --------- --------- --------- --------- --------- --------- HTML static hello.htm 1602.4 48236 30.10 0.000624 250 6756 mod_perl handler hello.ben 1177.3 36062 30.63 0.000849 154 11648 -- Josh ======= Old headers throwing static HTML bytes off ======== HTTP/1.1 200 OK Date: Wed, 18 Sep 2002 20:14:59 GMT Server: Apache/2.0.40 (Unix) mod_perl/1.99_05-dev Perl/v5.8.0 Last-Modified: Sun, 10 Dec 2000 03:43:21 GMT ETag: "153814-c-7363e840" Accept-Ranges: bytes Content-Length: 12 Connection: close Content-Type: text/html HTTP/1.1 200 OK Date: Thu, 19 Sep 2002 01:02:20 GMT Server: Apache/1.3.26 (Unix) Resin/2.1.2 PHP/4.2.1 mod_perl/1.27 mod_ssl/2.8.9 OpenSSL/0.9.6b Last-Modified: Sun, 10 Dec 2000 03:43:21 GMT ETag: "153814-c-3a32fbd9" Accept-Ranges: bytes Content-Length: 12 Connection: close Content-Type: text/html