Benchmarking a website
When you have a high-traffic site, you would probably want to know the limits of the website. What will be the capacity of my website when I launch a marketing campaign? What is slowing down my site? Which optimizations have the most effect?
To know the limits of a website, we have to use benchmarking tools. With a benchmarking tool, we will create a load on the website and log the response time to a file. By increasing or decreasing some values, we can determine the load that is the limit of a website.
In this recipe, we will benchmark the Magento site by doing some tests with ApacheBench and Siege. With these tools, we can measure the performance of different pages.
Getting ready
For this recipe, we need some tools that need to be installed on the webserver. Ensure that you have the following tools installed:
ApacheBench (
ab
): This tool can be installed using thesudo apt-get install apache2-utils
command. When this is installed on the server, you can use theab -h
command...