Joan Miquel 16b653298a Update php frameworks to ubuntu 20.04 (#5989) vor 5 Jahren
..
deploy 445ebcaa37 PHP add fastcgi_socket_keepalive in nginx (#5861) vor 5 Jahren
eloquent e225534dfe Correct small typo in header (#5092) vor 5 Jahren
models c791a06013 name php properly vor 11 Jahren
README.md d454e5062b Update php unit to Ubuntu 20.04 (#5713) vor 5 Jahren
apc.php c791a06013 name php properly vor 11 Jahren
benchmark_config.json f8953e8397 Ngx_php move to own framework dir (#5104) vor 5 Jahren
dborm.php e225534dfe Correct small typo in header (#5092) vor 5 Jahren
dbquery.php e225534dfe Correct small typo in header (#5092) vor 5 Jahren
dbraw.php e225534dfe Correct small typo in header (#5092) vor 5 Jahren
fortune.php 96a0c5429e PHP PDO use prepared statements in db server (#4862) vor 6 Jahren
info.php 6674dd637c Update and reconfigure PHP stack (#3291) vor 7 Jahren
json.php e225534dfe Correct small typo in header (#5092) vor 5 Jahren
php-activerecord.dockerfile f6c337fca0 Update plain php variants to Ubuntu 20.04 (#5692) vor 5 Jahren
php-eloquent.dockerfile f6c337fca0 Update plain php variants to Ubuntu 20.04 (#5692) vor 5 Jahren
php-h2o.dockerfile 16b653298a Update php frameworks to ubuntu 20.04 (#5989) vor 5 Jahren
php-laravel-query-builder.dockerfile f6c337fca0 Update plain php variants to Ubuntu 20.04 (#5692) vor 5 Jahren
php-pgsql-raw.dockerfile f6c337fca0 Update plain php variants to Ubuntu 20.04 (#5692) vor 5 Jahren
php-pools.dockerfile f6c337fca0 Update plain php variants to Ubuntu 20.04 (#5692) vor 5 Jahren
php-raw7-tcp.dockerfile f6c337fca0 Update plain php variants to Ubuntu 20.04 (#5692) vor 5 Jahren
php-unit.dockerfile d454e5062b Update php unit to Ubuntu 20.04 (#5713) vor 5 Jahren
php.dockerfile f6c337fca0 Update plain php variants to Ubuntu 20.04 (#5692) vor 5 Jahren
plaintext.php e225534dfe Correct small typo in header (#5092) vor 5 Jahren
updateraw.php b8367c014a Php use server-side prepares in update test (#5220) vor 5 Jahren

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