[phpa] Benchmark Results

  • From: Wandrer <wandrer@xxxxxxxxxxxxxxx>
  • To: phpa@xxxxxxxxxxxxx
  • Date: Tue, 12 Mar 2002 12:02:22 -0500

Here are some stats that I ran on a simple FreeBSD machine (128MB Ram / 
200mhz Pentium / php 4.1.2 / phpa 1.2p3). An old system, but a stable system:

===============================================================================

Basic Stats (with phpa):
660.125 seconds | 15.15 Req/sec | 7.53 [Kbytes/sec] | 1.56 load avg

Basic Stats (w/o phpa):
2294.358 seconds | 4.36 Req/sec | 2.03 [Kbytes/sec] | 3.28 load avg

= with phpa ===================================================================

This is ApacheBench, Version 1.3d <$Revision: 1.58 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/

Benchmarking wandrer-home.homeip.net (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.22
Server Hostname:        wandrer-home.homeip.net
Server Port:            80

Document Path:          /index.php
Document Length:        288 bytes

Concurrency Level:      2
Time taken for tests:   660.125 seconds
Complete requests:      10000
Failed requests:        6913
    (Connect: 0, Length: 6913, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      4968956 bytes
HTML transferred:       3018956 bytes
Requests per second:    15.15 [#/sec] (mean)
Time per request:       132.03 [ms] (mean)
Time per request:       66.01 [ms] (mean, across all concurrent requests)
Transfer rate:          7.53 [Kbytes/sec] received

Connnection Times (ms)
               min  mean[+/-sd] median   max
Connect:        0    42  938.0      0 21000
Processing:    43    89   31.6     88  1000
Waiting:       30    77   31.7     75   990
Total:         43   131  938.1     88 21101

Percentage of the requests served within a certain time (ms)
   50%     88
   66%     92
   75%    106
   80%    116
   90%    132
   95%    149
   98%    150
   99%    155
  100%  21101 (last request)

= top command at end of benchmark =============================================

last pid:  1551;  load averages:  1.56,  1.51,  1.07  up 0+01:34:17    10:35:57
37 processes:  2 running, 35 sleeping

Mem: 21M Active, 26M Inact, 16M Wired, 32K Cache, 22M Buf, 59M Free
Swap: 150M Total, 150M Free


   PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
   348 mysql     38   0   276M  8324K RUN      4:45 15.38% 15.38% mysqld
  1524 nobody     2   0  7004K  4972K sbwait   1:17 10.21% 10.21% httpd
  1525 nobody     2   0  7084K  5052K accept   1:17 10.16% 10.16% httpd
  1526 nobody     2   0  6352K  4344K accept   1:16  9.91%  9.91% httpd
  1550 nobody     2   0  5628K  3544K accept   0:00 10.85%  1.51% httpd
  1551 root      37   0  1896K  1092K RUN      0:00 10.00%  0.49% top
   349 root       2   0  5064K  4636K select   0:16  0.00%  0.00% perl
  1228 root       2   0  1904K  1180K select   0:03  0.00%  0.00% top
  1214 root       2   0  2632K  1996K select   0:02  0.00%  0.00% sshd
   242 root       2   0  2548K  1688K select   0:01  0.00%  0.00% sshd
     5 root      18   0     0K     0K syncer   0:01  0.00%  0.00% syncer
  1217 root      18   0  1392K  1020K pause    0:01  0.00%  0.00% csh
   247 root       2   0  2500K  2012K select   0:00  0.00%  0.00% sendmail
   363 root      18   0  1348K   972K pause    0:00  0.00%  0.00% csh
  1522 root       2   0  3412K  2744K select   0:00  0.00%  0.00% httpd
   216 root       2   0   932K   636K select   0:00  0.00%  0.00% syslogd
  1215 pap       10   0   632K   436K wait     0:00  0.00%  0.00% sh
     4 root     -18   0     0K     0K psleep   0:00  0.00%  0.00% bufdaemon

===============================================================================

= without phpa ================================================================

This is ApacheBench, Version 1.3d <$Revision: 1.58 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/

Benchmarking wandrer-home.homeip.net (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/1.3.22
Server Hostname:        wandrer-home.homeip.net
Server Port:            80
Document Path:          /index.php
Document Length:        299 bytes
Concurrency Level:      2
Time taken for tests:   2294.358 seconds
Complete requests:      10000
Failed requests:        9237
    (Connect: 0, Length: 9237, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      4668522 bytes
HTML transferred:       3018522 bytes
Requests per second:    4.36 [#/sec] (mean)
Time per request:       458.87 [ms] (mean)
Time per request:       229.44 [ms] (mean, across all concurrent requests)
Transfer rate:          2.03 [Kbytes/sec] received

Connnection Times (ms)
               min  mean[+/-sd] median   max
Connect:        0     0    0.5      0    51
Processing:   221   459   79.3    457   903
Waiting:      122   409   84.1    405   901
Total:        221   459   79.3    457   903

Percentage of the requests served within a certain time (ms)
   50%    457
   66%    464
   75%    474
   80%    484
   90%    539
   95%    622
   98%    683
   99%    703
  100%    903 (last request)

= top command at end of benchmark =============================================

last pid:  1613;  load averages:  3.28,  3.28,  3.04  up 0+02:17:29    11:19:09
38 processes:  2 running, 36 sleeping

Mem: 22M Active, 27M Inact, 17M Wired, 32K Cache, 22M Buf, 56M Free
Swap: 150M Total, 150M Free


   PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
  1586 nobody    47   0  4320K  3860K RUN      7:09 17.77% 17.77% httpd
  1587 nobody     2   0  4344K  3884K accept   7:08 17.33% 17.33% httpd
  1583 nobody     2   0  4336K  3876K accept   7:06 17.33% 17.33% httpd
  1584 nobody     2   0  4336K  3876K accept   7:06 16.80% 16.80% httpd
  1585 nobody     2   0  4320K  3860K accept   7:01 16.75% 16.75% httpd
   348 mysql      2   0   276M  8324K poll     7:17  5.81%  5.81% mysqld
   349 root       2   0  5064K  4636K select   0:16  0.00%  0.00% perl
  1228 root       2   0  1904K  1180K select   0:06  0.00%  0.00% top
  1214 root       2   0  2632K  1996K select   0:02  0.00%  0.00% sshd
     5 root      18   0     0K     0K syncer   0:02  0.00%  0.00% syncer
   242 root       2   0  2548K  1688K select   0:01  0.00%  0.00% sshd
  1217 root      18   0  1392K  1020K pause    0:01  0.00%  0.00% csh
   247 root       2   0  2500K  2012K select   0:01  0.00%  0.00% sendmail
  1581 root       2   0  3328K  2660K select   0:00  0.00%  0.00% httpd
   363 root      18   0  1348K   972K pause    0:00  0.00%  0.00% csh
   216 root       2   0   932K   636K select   0:00  0.00%  0.00% syslogd
     4 root     -18   0     0K     0K psleep   0:00  0.00%  0.00% bufdaemon
   239 root      10   0   968K   712K nanslp   0:00  0.00%  0.00% cron

===============================================================================

------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: