This is the PHP portion of a benchmarking test suite comparing a variety of web development platforms.
When editing this framework, be sure to force add the files changed. Most files were added to .gitignore, as the framework touches some of them during testing.
The tests were run with PHP Version 7.3.* + OPcache
- php-fpm 7.4.*
- nginx unit 1.18.0 (PHP 7.4)
The Laravel query builder / eloquent ORM components can be run separately from the Laravel framework. (Instructions) This is used for two tests:
- php-laravel-query-builder: uses the Laravel query builder without using the full Eloquent ORM.
This tests the overhead of the dependency injection container (Capsule) and the query builder without the overhead of the Eloquent ORM models. - php-eloquent: uses the Laravel Eloquent ORM which is built on top of the Laravel query builder. This tests the incremental overhead of the Eloquent ORM models.
These tests measure overhead compared to a PHP-PDO implementation. Comparing these tests to the Laravel framework results also illustrates the overhead of the Laravel frontend components relative to the backend components.
Raw: http://localhost/dbraw.php
ORM: http://localhost/dborm.php
Raw: http://localhost/dbraw.php?queries=5