You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1997/02/21 02:11:21 UTC

rough benchmarks

I have been doing some rough benchmarks here on Apache.  Using the latest
1.2b7.  Client a P120 w/64 megs, server a ppro/180 w/64 megs.  Connected by
10 meg ethernet which has other traffic going over it.  The P120 is a
webserver, but the ppro is just a box we are using temporarily to install
FreeBSD before moving it to another server; has junk like cheap IDE
drives, etc. 

Server FreeBSD 2.2, a couple of things tuned (somaxconn had to be raised
along with the backlog in the listen() call in http_main.c).  maxusers was
256, any less and I would crash from running out of mbufs.

Got the load average up to 205; still quite usable for interactive work.
maxclients set to 512, with spareservers and startservers set so there are
always at least 256 running.  The free cpu on the ppro did go down to 0 at
times, but normally stayed 15-30% free.  Logging was completely
disabled because of the crappy disks.  One of the machines had an
ISA ethernet card in it too.

Tests done using Zeus's little benchmark program.  Not the greatest, and
it only gets one file from the server over and over, but easy to setup.
The best results I got from Apache were:

	Requests per seconds:   495.75
	Transfer rate:          646.78 kb/s

...getting a 1k file using keepalives; a bogus test since it kept
the keepalive connection open for the whole test.

lingering_close() made almost 0 difference.

Results for non-keepalive and keepalive connections with files of
1,3,5k are below.

I am getting some cases of the benchmark program aborting with a
broken pipe; increasing somaxconn helped that a lot, but still
happens once in a while.

Note that some of the results, especially some of the latencies,
are questionable due to other loads on the machines.  The worst
performances may be due to other factors.

I also tried Zeus.  Disabled logging and DNS in it as well; if they
were enabled, Zeus would work better due to its cool threaded DNS
lookups.  Also note that Zeus took 1 1.5 meg process for all requests
and half or less the CPU that Apache did.  Zeus was far more server
friendly, and I would suspect you could get nearly the same results
from it with 32 or even 16 megs of ram, while Apache may be ok with
32 but it would die with 16.

This benchmark had me tuning Apache in a way that only someone
familiar with it would normally do, while I did not do any such
tuning on Zeus.  If you look at their benchmarks on their web pages
(http://www.zeus.co.uk), you will see that they have Apache 1.0.2
giving quite horrible results.  I am also mildly suprised at their
low results for Zeus, giving that their ran their benchmarks on a
client running Solaris with dual 100mhz Ross chips and 128 megs of
ram, and a client with dual 50mhz chips w/128 megs.  The ppro
shouldn't be much if any faster CPU wise (and Zeus never maxxed
out the CPU anyway...) and the rest of the hardware in that box
isn't anything great since it isn't normally a Unix server.

Also note I am getting close to running into throughput 
limitations of the ethernet and NICs in the boxes.  Certainly
getting enough collisions to make the cisco port it was
on whine a lot...

Summary:

docsize		keepalives	server		requests	rate (kb/sec)
1024		no		A		275.72		349.75
1024		no		Z		358.20		427.69
1024		yes		A		495.75		646.78
1024		yes		Z		533.22		666.52
3072		no		A		162.94		540.43
3072		no		Z		173.16		561.44
3072		yes		A		198.46		665.46
3072		yes		Z		178.99		592.56
5120		no		A		112.73		605.61
5120		no		Z		110.16		582.74
5120		yes		A		126.12		683.02
5120		yes		Z		102.95		555.22

So Apache is quite competitive in this test, especially considering
it is not threaded.  Once you get to larger requests, Apache even
starts beating zeus when you reduce the overhead of the multiple
processes.




Raw data:

---
Server:                 Apache/1.2b7-dev
Doucment Length:        1024
Concurency Level:       50
Time taken for tests:   30.001 seconds
Complete requests:      8272
Failed requests:        0
Bytes transfered:       10492700
HTML transfered:        8473600
Requests per seconds:   275.72
Transfer rate:          349.75 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     1   114  5992
Total:       5   166  8581
---

---
Server:                 Apache/1.2b7-dev
Doucment Length:        1024
Concurency Level:       50
Time taken for tests:   30.029 seconds
Complete requests:      14887
Failed requests:        0
Keep-Alive requests:    14764
Bytes transfered:       19422037
HTML transfered:        15244288
Requests per seconds:   495.75
Transfer rate:          646.78 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     0     1  5879
Total:       3    99  5995
---

---
Server:                 Apache/1.2b7-dev
Doucment Length:        3072
Concurency Level:       50
Time taken for tests:   30.023 seconds
Complete requests:      4892
Failed requests:        0
Bytes transfered:       16225360
HTML transfered:        15031224
Requests per seconds:   162.94
Transfer rate:          540.43 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     1   188  6111
Total:       8   283 10461
---

---
Server:                 Apache/1.2b7-dev
Doucment Length:        3072
Concurency Level:       50
Time taken for tests:   30.021 seconds
Complete requests:      5958
Failed requests:        0
Keep-Alive requests:    5922
Bytes transfered:       19977632
HTML transfered:        18304743
Requests per seconds:   198.46
Transfer rate:          665.46 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     0     0   145
Total:       7   227  7806
---

---
Server:                 Apache/1.2b7-dev
Doucment Length:        5120
Concurency Level:       50
Time taken for tests:   30.001 seconds
Complete requests:      3382
Failed requests:        0
Bytes transfered:       18168888
HTML transfered:        17338338
Requests per seconds:   112.73
Transfer rate:          605.61 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     1   225  6113
Total:      10   402 10553
---

---
Server:                 Apache/1.2b7-dev
Doucment Length:        5120
Concurency Level:       50
Time taken for tests:   30.002 seconds
Complete requests:      3784
Failed requests:        4
   (Connect: 0, Length: 4, Exceptions: 0)
Keep-Alive requests:    3772
Bytes transfered:       20491876
HTML transfered:        19420037
Requests per seconds:   126.12
Transfer rate:          683.02 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     0     0   120
Total:       0   371 15572
---


Using zeus on the server:

---
Server:                 Zeus/1.1.7_Eval
Doucment Length:        1024
Concurency Level:       50
Time taken for tests:   30.003 seconds
Complete requests:      10747
Failed requests:        0
Bytes transfered:       12831918
HTML transfered:        11004928
Requests per seconds:   358.20
Transfer rate:          427.69 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     1    82 29794
Total:       9   125 29821
---

---
Server:                 Zeus/1.1.7_Eval
Doucment Length:        1024
Concurency Level:       50
Time taken for tests:   30.001 seconds
Complete requests:      15997
Failed requests:        0
Keep-Alive requests:    15997
Bytes transfered:       19996250
HTML transfered:        16380928
Requests per seconds:   533.22
Transfer rate:          666.52 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     0     0    50
Total:      11    91  7572
---

---
Server:                 Zeus/1.1.7_Eval
Doucment Length:        3072
Concurency Level:       50
Time taken for tests:   30.002 seconds
Complete requests:      5195
Failed requests:        0
Bytes transfered:       16844238
HTML transfered:        15960918
Requests per seconds:   173.16
Transfer rate:          561.44 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     2   189  6055
Total:      15   252  9512
---

---
Server:                 Zeus/1.1.7_Eval
Doucment Length:        3072
Concurency Level:       50
Time taken for tests:   30.002 seconds
Complete requests:      5370
Failed requests:        0
Keep-Alive requests:    5370
Bytes transfered:       17777844
HTML transfered:        16556766
Requests per seconds:   178.99
Transfer rate:          592.56 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     0     0    49
Total:      61   274  3132
---

---
Server:                 Zeus/1.1.7_Eval
Doucment Length:        5120
Concurency Level:       50
Time taken for tests:   30.002 seconds
Complete requests:      3305
Failed requests:        0
Bytes transfered:       17483450
HTML transfered:        16921600
Requests per seconds:   110.16
Transfer rate:          582.74 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     1   263  6088
Total:      25   359  8559
---

---
Server:                 Zeus/1.1.7_Eval
Doucment Length:        5120
Concurency Level:       50
Time taken for tests:   30.054 seconds
Complete requests:      3094
Failed requests:        0
Keep-Alive requests:    3094
Bytes transfered:       16686700
HTML transfered:        15980224
Requests per seconds:   102.95
Transfer rate:          555.22 kb/s

Connnection Times (ms)
           min   avg   max
Connect:     0     0    49
Total:       7   479  7371
---



Re: rough benchmarks

Posted by Marc Slemko <ma...@znep.com>.
On Thu, 20 Feb 1997, Marc Slemko wrote:

> 
> Summary:
> 
> docsize		keepalives	server		requests	rate (kb/sec)

requests/sec, of course.  And the rate is kbytes/sec.

> 1024		no		A		275.72		349.75
> 1024		no		Z		358.20		427.69
> 1024		yes		A		495.75		646.78
> 1024		yes		Z		533.22		666.52

And after disabling the status module:

1024		no		A		309.83		392.90
1024		yes		A		514.98		671.86
3072		no		A		167.36		555.06
5120		yes		A		132.46		716.96

...the rest are around the same; the biggest overhead of the status
module is on small requests, so for average sized requests (our server
averages ~6.5k/hit) it probably isn't a big deal.  OTOH, it could just
be some limit based on the bandwidth.  Would be interesting to try
with a real benchmark on a 100 meg network.


> 3072		no		A		162.94		540.43
> 3072		no		Z		173.16		561.44
> 3072		yes		A		198.46		665.46
> 3072		yes		Z		178.99		592.56
> 5120		no		A		112.73		605.61
> 5120		no		Z		110.16		582.74
> 5120		yes		A		126.12		683.02
> 5120		yes		Z		102.95		555.22
> 
> So Apache is quite competitive in this test, especially considering
> it is not threaded.  Once you get to larger requests, Apache even
> starts beating zeus when you reduce the overhead of the multiple
> processes.
>