Measure the results of FastCGI cache

Restart Nginx.

[root@ip plugins]# systemctl restart nginx

With this, you are ready to test.

Perform a benchmark test with ab.

[root@ip plugins]# ab -n 10000 -c 100

In my environment, requests per second was 12672.30.

Tuning contentsPage load timeRequests per second
Default environment176ms11.24
APC70ms (251%)29.20
OPcache+APCu66ms (266%)30.51
MariaDB settings64ms (275%)31.82
Translation accelerator (cache)53ms (332%)39.29
Translation accelerator (disabled)36ms (488%)56.78
gzip35ms (502%)
Tuned settings34ms (517%)58.47
event MPM+php-fpm33ms (537%)60.79
AWS users31ms (567%)71.76
PHP 5.6+OPCache+APCu32ms (550%)61.84 (550.2%)
PHP 7+OPCache+APCu18ms (977.7%)148.08 (1250.6%)
HHVM16ms (1100%)195.05 (1690.8%)
Nginx+PHP 716ms (1100%)151.07 (1344%)
Nginx+HHVM16ms (1100%)205.20 (1825.6%)
WP SiteManagerN/A2566.17 (22830%)
FastCGIN/A12672.30 (112742%)

We can see that the requests per second in the default environment was 11.24, increased to 205.20 with the Nginx+HHVM 3.12 configuration, then increased to 12672.30 with the use of Nginx’s FastCGI cache. In other words, without page caching you can speed up WordPress 18.2x, but with page caching that increases to 1127.4x.

I believe you can pursue your goal of optimized WordPress site performance by using these techniques in your own environment.

Next time, I will introduce a WordPress virtual machine that takes all these tuning steps and combines them to make things simpler. Stay tuned!

[Previous article]