04.06.2013

Thema

APC Benchmark pascal-brewing.de

First benchmark Apache without APC

ab -t 30 -c 10 http://pascal-brewing.de/
This is ApacheBench, Version 2.3 Revision: 655654<br>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking pascal-brewing.de (be patient)
Finished 95 requests


Server Software:        Apache/2.2.16
Server Hostname:        pascal-brewing.de
Server Port:            80

Document Path:          /
Document Length:        17928 bytes

Concurrency Level:      10
Time taken for tests:   30.000 seconds
Complete requests:      95
Failed requests:        0
Write errors:           0
Total transferred:      1727169 bytes
HTML transferred:       1707297 bytes
Requests per second:    3.17 [#/sec] (mean)
Time per request:       3157.895 [ms] (mean)
Time per request:       315.789 [ms] (mean, across all concurrent requests)
Transfer rate:          56.22 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       25 2448 1632.4   2422    8236
Processing:     0  554 1156.0    254    7339
Waiting:        0  309 1057.5     74    7077
Total:       1071 3002 1645.8   2780    8238

Percentage of the requests served within a certain time (ms)
  50%   2776
  66%   3097
  75%   3717
  80%   4105
  90%   5088
  95%   7057
  98%   7500
  99%   8238
 100%   8238 (longest request)

install APC

apt-get install php-apc
#configure
nano /etc/php5/apache2/conf.d/apc.ini 
extension = apc.so 
apc.enabled = 1 
apc.shm_size = 48 
apc.include_once_override = 1 
apc.mmap_file_mask = /tmp/apc.XXXXXX

after apache2 restart

ab -t 30 -c 10 http://pascal-brewing.de/
This is ApacheBench, Version 2.3 Revision: 655654<br>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking pascal-brewing.de (be patient)
Finished 568 requests


Server Software:        Apache/2.2.16
Server Hostname:        pascal-brewing.de
Server Port:            80

Document Path:          /
Document Length:        17928 bytes

Concurrency Level:      10
Time taken for tests:   30.051 seconds
Complete requests:      568
Failed requests:        0
Write errors:           0
Total transferred:      10335199 bytes
HTML transferred:       10217209 bytes
Requests per second:    18.90 [#/sec] (mean)
Time per request:       529.071 [ms] (mean)
Time per request:       52.907 [ms] (mean, across all concurrent requests)
Transfer rate:          335.86 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   2.8      0      36
Processing:   436  524 105.8    497    1147
Waiting:      411  483  95.5    460    1066
Total:        436  524 105.8    497    1147

Percentage of the requests served within a certain time (ms)
  50%    497
  66%    506
  75%    514
  80%    519
  90%    569
  95%    629
  98%   1044
  99%   1076
 100%   1147 (longest request)
 

Leave a Comment