WordPress Super Cache Benchmarks (Apachebench) Round 1


Prior WordPress Super Cache plugin benchmarks were using Blitz.io for load testing. This time for WordPress Super Cache benchmarks using Apachebench tool (available via the httpd-tools YUM package) launched from remote Las Vegas based server running CentOS 6.5 to test this blog’s index page served from a 2GB KVM based DigitalOcean KBM VPS + CentOS 7.0 using Centmin Mod LEMP web stack and PHP 7.0.0-dev (PHP NG) . Apachebench benchmark run was tested with keepalives enabled and 1000 user concurrency with 20,000 requests.

ab -k -c1000 -n20000 http://wordpress7.centminmod.com/

Apachebench benchmark results = 3,104 requests/sec with mean time of 322ms per request. Not bad for just a 2 cpu core/thread based 2GB KVM based DigitalOcean KBM VPS server.

ab -k -c1000 -n20000 http://wordpress7.centminmod.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking wordpress7.centminmod.com (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
Completed 18000 requests
Completed 20000 requests
Finished 20000 requests


Server Software:        nginx
Server Hostname:        wordpress7.centminmod.com
Server Port:            80

Document Path:          /
Document Length:        16257 bytes

Concurrency Level:      1000
Time taken for tests:   6.442 seconds
Complete requests:      20000
Failed requests:        1
   (Connect: 0, Receive: 0, Length: 1, Exceptions: 0)
Write errors:           0
Keep-Alive requests:    19999
Total transferred:      338479580 bytes
HTML transferred:       332576483 bytes
Requests per second:    3104.66 [#/sec] (mean)
Time per request:       322.096 [ms] (mean)
Time per request:       0.322 [ms] (mean, across all concurrent requests)
Transfer rate:          51311.79 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3  42.2      0    2430
Processing:     0  307 232.2    225    4101
Waiting:        0   53  65.3     37    1728
Total:          0  310 237.7    225    4671

Percentage of the requests served within a certain time (ms)
  50%    225
  66%    304
  75%    416
  80%    464
  90%    578
  95%    745
  98%   1006
  99%   1155
 100%   4671 (longest request)

NewRelic stats showed around 983 active Nginx connections, 982 idle Nginx connections, 800 Nginx requests per second peak with CPU load average of 0.138 / 2 = 0.069 and Network I/O at 4.89Mb/s


Nginx 983 active connections, Nginx 982 idle connections


Nginx Connection Accept rate was 49 connections/sec


Nginx 800 requests/second


Nginx cpu, memory and instance stats.


The Centmin Mod LEMP web stack consists of the following:

For more information on the Centmin Mod LEMP web stack install, check out the How to install Centmin Mod LEMP web stack on DigitalOcean Droplet Guide.

The following two tabs change content below.

George

Owner / Creator at CentminMod.com
Centminmod.com LEMP web stack creator - auto installs Nginx, PHP-FPM, MariaDB MySQL + CSF Firewall on CentOS

Latest posts by George (see all)