This blog post was migrated from old wordpress7.centminmod.com site prior to it’s closure. 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 cpu, memory and instance stats.
The Centmin Mod LEMP web stack consists of the following:
- Centmin Mod .08 beta release
- Nginx 1.7.7
- PHP 7.0.0-dev + Zend Opcache
- MariaDB 10.0.14 MySQL server
- Memcached Server 1.4.21 + Memcache 3.0.8 PHP Extension
- Libmemcached 1.0.18 + Memcached 2.2.0 PHP Extension
- Siege Benchmark Tool
- Ioping Random Disk I/O Benchmark Tool (optional)
- Multi-threaded compression: pigz, pbzip2, lbzip2, plzip, p7zip (optional)
- Python 2.7.7 (optional)
- CSF Firewall
- CentOS 7.0 64bit
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.