Joan Miquel e78a19dc57 Update to PHP 7.4 (#5323) преди 5 години
..
deploy f8953e8397 Ngx_php move to own framework dir (#5104) преди 5 години
eloquent e225534dfe Correct small typo in header (#5092) преди 5 години
models c791a06013 name php properly преди 11 години
README.md f8953e8397 Ngx_php move to own framework dir (#5104) преди 5 години
apc.php c791a06013 name php properly преди 11 години
benchmark_config.json f8953e8397 Ngx_php move to own framework dir (#5104) преди 5 години
dborm.php e225534dfe Correct small typo in header (#5092) преди 5 години
dbquery.php e225534dfe Correct small typo in header (#5092) преди 5 години
dbraw.php e225534dfe Correct small typo in header (#5092) преди 5 години
fortune.php 96a0c5429e PHP PDO use prepared statements in db server (#4862) преди 6 години
info.php 6674dd637c Update and reconfigure PHP stack (#3291) преди 7 години
json.php e225534dfe Correct small typo in header (#5092) преди 5 години
php-activerecord.dockerfile e78a19dc57 Update to PHP 7.4 (#5323) преди 5 години
php-eloquent.dockerfile e78a19dc57 Update to PHP 7.4 (#5323) преди 5 години
php-h2o.dockerfile b85d6880a1 Update H2O (#5031) преди 6 години
php-laravel-query-builder.dockerfile e78a19dc57 Update to PHP 7.4 (#5323) преди 5 години
php-pgsql-raw.dockerfile c515b7044e Update php-pgsql-raw to php 7.4 (#5277) преди 5 години
php-pools.dockerfile e78a19dc57 Update to PHP 7.4 (#5323) преди 5 години
php-raw7-tcp.dockerfile e78a19dc57 Update to PHP 7.4 (#5323) преди 5 години
php-unit.dockerfile 127ef6fb3b Updated Unit to php7.3 (#4990) преди 6 години
php.dockerfile e78a19dc57 Update to PHP 7.4 (#5323) преди 5 години
plaintext.php e225534dfe Correct small typo in header (#5092) преди 5 години
updateraw.php b8367c014a Php use server-side prepares in update test (#5220) преди 5 години

README.md

PHP Benchmarking Test

This is the PHP portion of a benchmarking test suite comparing a variety of web development platforms.

Important

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.

Infrastructure Software Versions

The tests were run with PHP Version 7.3.* + OPcache

Platforms

Webservers

Databases

ActiveRecord

Eloquent ORM / Laravel Query Builder

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.

Brion Finlay

Test URLs

JSON Encoding Test

http://localhost/json.php

Data-Store/Database Mapping Test

Raw: http://localhost/dbraw.php

ORM: http://localhost/dborm.php

Variable Query Test

Raw: http://localhost/dbraw.php?queries=5

ORM: http://localhost/dborm.php?queries=5

Eloquent ORM / Laravel Query Builder tests

Eloquent ORM