From the course: Exploring and Selecting PHP Frameworks

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Performance

Performance

Developers often think performance is the most important factor when choosing a framework. But it's likely that the framework will not be the reason your application is slow. I want to start with some data. This repo exists to test PHP framework performance, and this author did not include WordPress as a framework. I want to jump right in some shocking numbers. This graph is requests per second to return a page that says Hello World! In a previous version, PHP 8.3 could handle around 27,000 requests per second. But look at the far right column, Laravel 10.2 appears to be extremely slow. But slow is relative. That's around 85 requests per second, or 5,100 per minute, or 306,000 per hour, seven million per day. Most of us are now working on apps that get that kind of traffic. And I don't want to seem like I'm picking on the author here. This is actually really interesting work, but it's not real-world testing. In fact, all these frameworks were doing is serving a static string that says…

Contents