We compared the speed at which different web servers and caching platforms respond to requests for WordPress pages on a cPanel setup, using both non-keep-alive and keep-alive connections.
Our test platforms included:
LiteSpeed Enterprise (LSWS) using the popular W3 Total Cache and WPRocket WordPress cache plugins, as well as with our LiteSpeed Cache Plugin for WordPress.
Apache using the W3 Total Cache and WPRocket WordPress cache plugins.
Our results showed Apache (with keep-alive enabled) peaking around 1,300 and 700 requests per second with W3TC and WPRocket, respectively.
With the exact same setup, LSWS with W3TC and WPRocket delivered around 4,800 requests per second, an improvement factor of over 2.6x or 6x respectively.
Using the LiteSpeed Cache Plugin for WordPress with LSWS easily handled close to 5,200 requests per second.
LSWS with LSCache Performance Gain
Concurrent Users Keep-Alive Apache / WPRocket Apache / W3TC Nginx / FCGI LSWS / W3TC LSWS / WPRocket
10 No 5.6x 3.2x 4.9x 1.2x 1.2x
Yes 7.4x 4.0x 6.4x 1.1x 1.1x
100 No 5.7x 3.2x 5.0x 1.2x 1.2x
Yes 6.3x 3.5x 5.0x 1.1x 1.1x
Notes:
Default configurations were used when possible.
Rewrite rule caching was used for W3TC and WPRocket to ensure maximum peformance.
The test was performed over a 10GBps network connection to make sure network bandwidth did not become a bottleneck.
The benchmark simulated serving 10,000 requests to 10 and 100 users.