After the release of Magento Full Page Cache extension many clients started asking us what makes our extension better than Varnish Cache and whether it is better at all. At first we didn’t consider conducting such research, but the amount of our clients interested in this issue encouraged us to knock these two together to learn which of them provides the best page load time. Get inside the review to know who has become the winner!
Indeed, if you need to speed up your Magento store, just ‘faster’ is not enough to describe the performance of your website. A fair contest of two Magento cache extensions with detailed speed results is at your service.
Since a new version of Magento 188.8.131.52 has been released we have changed the test configuration a little bit in comparison to our previous Full Page Cache test.
- CPU: Intel Xeon L5520 2.27GHz (16 core)
- RAM: 16 GB
- Storage: SSD INTEL SSDSC2BB480G4
- Magento Community 184.108.40.206
- Magento Sample Data 220.127.116.11
- Apache 2.2.22
- Varnish 3.0.2
- PHP 5.4.4 (mod_php + Zend OpCache 7.0.3)
- MySQL 5.5.35
Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. It is installed in front of any server that speaks HTTP.
Varnish Cache itself is not designed for working with Magento directly, so we took Nexcess Turpentine module for Magento and Varnish integration for the speed test. Basing on the recommendations of Turpentine module producer, we added «-p esi_syntax=0×2 -p cli_buffer=16384» to Varnish startup options. As a result Varnish startup options looked as follows:
Magento Full Page Cache
To prevent Apache and Varnish conflict Apache was switched to port 8080.
For testing we used the list of 14 URLs of Category and Product pages: http://our-test-site/
Before every test launch Magento cache was cleared and a single visit to all URLs was performed to “warm the cache up” before taking the test results. After the warm-up test for 10, 20, 30, 40 and 50 simultaneous visitors was launched.
Comparison test results (in ms) are in the table as follows:
To make the results easier to comprehend and let you vividly see the page load speed each Magento extension provides we have built some diagrams.(Magento Full Page Cache)
As you can see, the speed of Full Page Cache exceeds combination of Varnish Cache and Turpentine in 2-4 times. The biggest difference can be seen during the first visit of the website – at this moment both caches create a session for the user and have to initialise Magento. Since Full Page Cache initialises at the early stage, it can give the cached result quickly and Turpentine uses a lot of time in vain on extra initialisation. This is an important point, as its impact deals with first visits and users’ impression of your website.
According to Kissmetrics, a 1 second delay in website load speed can decrease conversions by 7%. In fact, you might even want to count the money you lose using a Magento cache extension providing worse page load time.
Amasty Team recommends you using Magento Full Page Cache extension for providing the minimal page load time possible.