Performance analysis of Laravel and Yii2 frameworks based on the MVC architectural pattern and PHP language

Konrad Sławomir Węgrzecki


Lublin University of Technology (Poland)

Mariusz Dzieńkowski

m.dzienkowski@pollub.pl
Lublin University of Technology (Poland)

Abstract

The subject of this paper is the performance analysis of two PHP programming frameworks in the latest versions - Laravel 9.6 and Yii 2.0.45. It was carried out with the help of test applications prepared for this purpose, which have identical functionalities: they generate all prime numbers from a given range and create a book ranking system based on CRUD operations. The request handling time of each application was used as a comparison criterion. To check the performance, dedicated debugbars - bottom bars displaying information about the executed request - were used. The results obtained after the tests showed that in terms of performance, Laravel is a better technology than Yii for building web applications.


Keywords:

Laravel, Yii2, programming frameworks, performance comparative analysis

Dane statystyczne wykorzystywania języków programistycznych w 2021 roku, https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/, [22.05.2022].
  Google Scholar

Dane statystyczne wykorzystywania szkieletów programistycznych języka PHP w 2021 roku, https://www.jetbrains.com/lp/devecosystem-2021/php/, [22.05.2022].
  Google Scholar

U. K. Latif, T. F. Kusumasari, Comparison Between Yii Frameworks and Laravel in 3 Different Version for Viewing Large Data of Shipyard Industry in Indonesia, International Journal of Innovation in Enterprise System 2 (2018) 13-18.
DOI: https://doi.org/10.25124/ijies.v2i01.12   Google Scholar

A. Zurkiewicz, M. Milosz, Selecting a PHP framework for a web application project-The method and case study. In Conference: 9th international Technology, Education and Development Conference (2015).
  Google Scholar

O. Sydorchuk, Porównanie możliwości tworzenia aplikacji PHP na przykładzie Yii2 i Laravel, Journal of Computer Sciences Institute 11 (2019) 125-130.
DOI: https://doi.org/10.35784/jcsi.167   Google Scholar

K. Benmoussa, M. Laaziri S. Khoulji, K. M. Larbi, A. El Yamami, A new model for the selection of web development frameworks: application to PHP frameworks, International Journal of Electrical and Computer Engineering (IJECE) 9(1) (2019) 695 – 703.
DOI: https://doi.org/10.11591/ijece.v9i1.pp695-703   Google Scholar

M. Laaziri, K. Benmoussa, S. Khoulji, K. M. Larbi, A. El Yamami, A comparative study of laravel and symfony PHP frameworks. International Journal of Electrical and Computer Engineering (IJECE) 9(1) (2019) 704-712.
DOI: https://doi.org/10.11591/ijece.v9i1.pp704-712   Google Scholar

K. Kuflewski, M. Dzieńkowski, Symfony and Laravel - acomparative analysis of PHP programming frameworks. Journal of Computer Science Institute 21 (2021) 367-372.
DOI: https://doi.org/10.35784/jcsi.2749   Google Scholar

D. Drabik, Comparison of new ways of creating PHP applications using Laravel and CodeIgniter example. Journal of Computer Sciences Institute 10 (2019) 71-76.
DOI: https://doi.org/10.35784/jcsi.211   Google Scholar

N. Prokofyeva, V. Boltunova, Analysis and practical application of PHP frameworks in development of web information systems, Procedia Computer Science 104 (2017) 51-56.
DOI: https://doi.org/10.1016/j.procs.2017.01.059   Google Scholar

Opis biblioteki SLOC, https://www.npmjs.com/package/sloc, [22.05.2022].
  Google Scholar

Porównanie wydajności platform testowych, https://cpu.userbenchmark.com/Compare/Intel-Core-i7-9750H-vs-Intel-Core-i7-11700K/m766364vs4107, [22.05.2022].
  Google Scholar

Download


Published
2022-09-30

Cited by

Węgrzecki, K. S., & Dzieńkowski, M. (2022). Performance analysis of Laravel and Yii2 frameworks based on the MVC architectural pattern and PHP language. Journal of Computer Sciences Institute, 24, 265–272. https://doi.org/10.35784/jcsi.3002

Authors

Konrad Sławomir Węgrzecki 

Lublin University of Technology Poland

Authors

Mariusz Dzieńkowski 
m.dzienkowski@pollub.pl
Lublin University of Technology Poland

Statistics

Abstract views: 198
PDF downloads: 244