Benchmarks for object cache plugins. For plugins that have other options like page caches and acceleration, those are disabled in the benchmarks. We benchmark only the plugin with its object cache.
Running the benchmarks requires installing
Nix.
You can enter a development shell via nix develop,
or automatically using direnv.
You should run the benchmarks in a disposable Linux VM with no access to secrets.
After starting a development shell,
you can run the default benchmarks via just bench.
This runs a series of 5000 random requests using each
plugin and each backend that that plugin supports.
You can run specific benchmarks via just bench -c <name>.
See finefile --help for a full list of options.
just bench: 5000 requests to a default WordPress installjust bench-posts: 5000 requests to a WordPress install with 1000 posts addedjust bench-products: 5000 requests to a WooCommerce install with 1000 products added
You can start a development server with the same setup as
a benchmark by running just dev <name>.
WordPress will be available at http://locahost:8888/wp-admin/
Benchmarks are defined in finefile.toml.
Other benchmark setups are based finefile.toml, but they override values in finefile-posts.toml and finefile-products.toml.
See benchmark setups for server configuration options.
The available benchmarks are:
WordPress's built-in object cache:
no-cache-plugins
LiteSpeed Cache, an all-in-one acceleration and caching plugin. The page cache is disabled so that we test only the object cache:
litespeed-memcachedconfigured with memcached backendlitespeed-redisconfigured with redis backend
redis-cache
snapcache-memcachedconfigured with memcached backend
sqlite-object-cachedefault configuration without APCu cachesqlite-object-cache-apcuwith APCu cache
wp-redis