WordPress Caching Comparision – W3 Total Cache vs. WP Super Cache vs. WP Cache

Updated June 14. Added results for W3 Total Cache using Disk Enhanced caching only at the request of Frederick Townes, author of W3 Total Cache. I ran tests with both “gzip” and “gzip and deflate” settings.

I’ve seen a lot of discussion lately about the various WordPress caching plugins. Here’s a quick comparison using Apache Bench. First some background on the test platform.

This is a 512mb VPS from prgmr.com

Fresh install of Ubuntu 10.04

NginX, PHP, MySQL installed via APT (PHP 5.3.2-1ubuntu4.2ppa3~lucid1 (FPM/FastCGI), NginX 0.7.65, MySQL (5.1.41-3ubuntu12.3))

WordPress 2.9.2, standard Kubrick theme, nginx Compatibility plug-in installed.

Plugin Versions:

WP-Cache 2.12
WP Super Cache 0.9.9
W3 Total Cache 0.8.5.2

The following command line was used. The -c and -n flags were modified during different runs as illustrated below.

ab -k -n XXX -c XXX http://testingserver/wordpress/2010/06/hello-world/
-n flag is the total number of requests (this is 1000 unless noted)
-c flag is for the number of concurrent requests
The Results

Click for full version
There was no -n 10000 -c 250 run for WordPress with no cache, as it would’ve taken very long and no further information would be gained.. Updated
Raw Data
50 Concurrent Requests

cache methodtime takentotal transferredhtml transferredreq/sectransfer rate

none42.6317025688678621023.46160.94

wp-cache9.56771570006872000104.53730.58

wp super cache (half on)7.63671840846905065130.96918.8

wp super cache (full)7.41171800006901000134.93946.07

w3 total cache (quick)8.22864276186039371121.53762.84

w3 total cache (APC for all)8.38465540376087793119.28763.44

w3 total cache (DE only)7.78774195047032408128.41930.43

w3 total cache (DE only gzip+deflate)7.51873934407008630133.01960.33

100 Concurrent Requests

cache methodtime takentotal transferredhtml transferredreq/sectransfer rate

none41.2777025688678621024.23166.22

wp-cache7.94272299886940603125.91888.98

wp super cache (half on)4.71173535007063600212.281524.42

wp super cache (full)4.59873162827013904217.491553.89

w3 total cache (quick)4.61964833206090890216.51370.77

w3 total cache (APC for all)5.32665714136103337187.761204.91

w3 total cache (DE only)5.21374672887076001191.831398.88

w3 total cache (DE only gzip+deflate)4.50374586007068075222.071617.52

250 Concurrent Requests

cache methodtime takentotal transferredhtml transferredreq/sectransfer rate

none45.1126694982645971522.17144.93

wp-cache5.00173704447067664199.951439.19

wp super cache (half on)4.78274797367181764209.111527.41

wp super cache (full)3.43675138407197120291.022135.43

w3 total cache (quick)5.34163841785999741187.241167.33

w3 total cache (APC for all)7.1765792566110264139.46896.05

w3 total cache (DE only)4.64875324487135446215.141582.52

w3 total cache (DE only gzip+deflate)5.26574629447072038189.931384.21

250 Concurrent Requests – 10000 Total Requests

cache methodtime takentotal transferredhtml transferredreq/sectransfer rate

none384.545646280536231106726164.12

wp-cache34.5527159954868748013289.422023.66

wp super cache (half on)29.0757204734869241705343.942419.91

wp super cache (full)28.5347233796869365832350.462475.77

w3 total cache (quick)42.4326356475259751704235.671462.91

w3 total cache (APC for all)43.6886496847360366489228.91452.25

w3 total cache (DE only gzip)42.6747369548069868335234.341686.48

w3 total cache (DE only gzip+deflate)42.3917361294469793038235.91695.81

Similar Posts