PHP 7.0.1 + Redis Cache for WordPress


Today updated this blog’s Centmin Mod LEMP stack PHP-FPM to PHP 7.0.1 with added PHP Redis PHP Extension support and enabled Nginx level Redis caching + Redis Object Caching. The switch from WordPress Super Cache plugin to this WordPress Redis caching combination will result in much faster site for this 2GB DigitalOcean KVM VPS. Below are the results for Blitz.io & Loader.io both with 10,000 user benchmark stress test for this blog.

php -v
PHP 7.0.1 (cli) (built: Dec 23 2015 21:40:35) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

PHP extensions loaded with PHP 7.0.1

php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
enchant
exif
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
igbinary
imagick
imap
intl
json
libxml
mbstring
mcrypt
memcached
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
redis
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache

Blitz.io 10,000 user California test run on this 2GB DigitalOcean KVM VPS resulted in 302.67 million hits/day with a peak of around 5,122 hits/second and average of 3,503 hits/second.

 

Next up is Loader.io 10,000 user test on their free plan. The 10,000 users where distributed over 1 minute test duration so not concurrent. Note Loader.io’s main test servers are located in US East coast, while my blog is located in Fremont, California on US West coast hence the difference in average response time due to geographic distance differences.  Average response time for this test was 74ms.

And finally Loader.io test with a maintained 0 to 10,000 user load over 60 minutes as opposed to distributed 10,000 user load over 60 minutes. Average response time for this test was 928ms.

 

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)