We conducted a stress testing of the online store to determine the performance of the server and CMS PrestaShop, taking into account the connected Cloudflare CDN.
The work was carried out in two stages:
- Initial testing with several tools.
- Control tests after additional server settings.
To get the most objective results, our programmer conducted a series of tests using several services:
- https://loader.io/
- https://frugaltesting.com/
- https://www.joedog.org/siege-home/
- https://gatling.io/open-source/.
As a result of the tests, we establish that:
- the server is capable of holding a load of 10 users per second for one minute. If there are more users, the failures begin;
- the site withstood the load of 5 users per second for 5 minutes (so, it will stay longer).
The current configuration of PrestaShop is also able to withstand the load (taking into account the connected Cloudflare). There is no need to abandon CMS because of performance needs.
After making changes to the server settings, we retested to evaluate the results of the adjustments. We use only Gatling and 2 scripts for this:
- 5 users per second for 5 minutes (total 1500 users);
- 10 users per second for 5 minutes (total 3000 users).
All tests showed noticeable performance improvements. The server response time has been greatly improved
Before:
![old server response time](/storage/summernote/652943b282f946632.png)
After:
![new server response time](/storage/summernote/652943c5ede708354.png)
Thus, our programmer identified the problems that had negatively affected the performance of the resource thanks to the load testing. And these problems were eliminated in conjunction with the system administrator of the server. The result is a speed and performance increase of the online store.