PHP 5.2 and APC (Alternative PHP Cache) Performance

With APC

cc@snox:~$ sudo ab -n 10 http://mediakey.dk/~cc/
This is ApacheBench, Version 2.0.40-dev < $Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking mediakey.dk (be patient).....done

Server Software:        Apache
Server Hostname:        mediakey.dk
Server Port:            80

Document Path:          /~cc/
Document Length:        43525 bytes

Concurrency Level:      1
Time taken for tests:   1.937474 seconds
Complete requests:      10
Failed requests:        0
Write errors:           0
Total transferred:      437420 bytes
HTML transferred:       435250 bytes
Requests per second:    5.16 [#/sec] (mean)
Time per request:       193.747 [ms] (mean)
Time per request:       193.747 [ms] (mean, across all concurrent requests)
Transfer rate:          220.39 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   192  193   1.3    193     195
Waiting:        0   19  13.7     28      30
Total:        192  193   1.3    193     195

Percentage of the requests served within a certain time (ms)
  50%    193
  66%    193
  75%    195
  80%    195
  90%    195
  95%    195
  98%    195
  99%    195
 100%    195 (longest request)
cc@snox:~$

Without APC

cc@snox:~$ sudo ab -n 10 http://mediakey.dk/~cc/
This is ApacheBench, Version 2.0.40-dev < $Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking mediakey.dk (be patient).....done

Server Software:        Apache
Server Hostname:        mediakey.dk
Server Port:            80

Document Path:          /~cc/
Document Length:        43525 bytes

Concurrency Level:      1
Time taken for tests:   2.842836 seconds
Complete requests:      10
Failed requests:        0
Write errors:           0
Total transferred:      437420 bytes
HTML transferred:       435250 bytes
Requests per second:    3.52 [#/sec] (mean)
Time per request:       284.284 [ms] (mean)
Time per request:       284.284 [ms] (mean, across all concurrent requests)
Transfer rate:          150.20 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   283  283   1.4    283     286
Waiting:      102  102   0.7    102     104
Total:        283  283   1.4    283     286

Percentage of the requests served within a certain time (ms)
  50%    283
  66%    283
  75%    285
  80%    285
  90%    286
  95%    286
  98%    286
  99%    286
 100%    286 (longest request)

More on APC Cache, Memcached Cache, and MySQL Query Cache performance

Related posts:

  1. Varnish : Simple and Fast HTTP Acceleration
  2. Block referer spam easily
  3. Howto Secure Apache
  4. Optimize MySQL Performance With MySQLTuner
  5. Tomcat Performance: Linux faster than Windows
  6. AMD DDR2 Linux Performance
  7. Browse Faster Using a Local DNS Cache
  8. Linux Terminal Speed Performance Comparison
  9. HTTP Request Smuggling
  10. MySQL Optimization and Performance Tips

Popular Related Items »

1 Comment »

  1. Another way to cache said,

    June 12, 2009 @ 0:23

    [...] positive, but don’t take my word for it. Check out some of the performance results: here, here and [...]

RSS feed for comments on this post · TrackBack URI

Leave a Comment