When it comes to choosing a framework to create a website, performance is one of the main criteria. In this article we will compare the performance of three popular frameworks: Laravel, Symfony and WordPress.
To compare the performance of Laravel, Symfony and WordPress, tests were conducted on page loading speed and server response time.
All tests were conducted on a virtual machine with Ubuntu 18.04, installed on a computer with an Intel Core i5 processor and 8 GB of RAM. As Nginx 1.14.0 was used as the web server, and MySQL 5.7.22 was used as the DBMS.
Three Laravel sites were created for testing, Symfony and WordPress. Each site contained the same static page with the text "Hello World".
The following tools were used for testing:
The server response time was measured using Apache JMeter. The table below shows the average server response times for each framework, calculated based on 1000 requests:
Framework | Server Response Time (ms) |
Laravel | 33 |
Symfony | 32 |
WordPress | 44 |
As can be seen from the table, Laravel and Symfony have similar results, while WordPress has a higher server response time.
Page loading speed was measured using Google PageSpeed Insights. The table below shows the average page loading speeds for each framework:
Framework | Page loading speed (points) |
Laravel | 91 |
Symfony | 91 |
WordPress | 77 |
As can be seen from the table, Laravel and Symfony have the same high page loading speed, while WordPress has a lower value.
Based on the test results, we can conclude, that Laravel and Symfony have similar performance, and WordPress has lower performance by compared to these two frameworks. If you need to create a website with fast page loading speed and high performance, then Laravel and Symfony will be the best choices.
menuclose
Спасибо! Заявка отправлена. Свяжемся с вами в течении часа!