Joan Miquel f6e9848e77 Update ngx_php to v0.19 (#5025) 6 years ago
..
deploy 4bb9f58416 Changed processes number in unit nginx (#5023) 6 years ago
eloquent a9f52c3293 Update Eloquent ORM to return objects (#4648) 6 years ago
models c791a06013 name php properly 11 years ago
README.md 00a84a0559 [ci skip] Update php/php readme (#4960) 6 years ago
apc.php c791a06013 name php properly 11 years ago
benchmark_config.json 4368c6fbf5 Add plaintext and json to php tcp (#5003) 6 years ago
dborm.php d415bb2a9a Simplify php activerecords (#4606) 6 years ago
dbquery.php 96a0c5429e PHP PDO use prepared statements in db server (#4862) 6 years ago
dbraw.php 96a0c5429e PHP PDO use prepared statements in db server (#4862) 6 years ago
fortune.php 96a0c5429e PHP PDO use prepared statements in db server (#4862) 6 years ago
info.php 6674dd637c Update and reconfigure PHP stack (#3291) 7 years ago
json.php 96a0c5429e PHP PDO use prepared statements in db server (#4862) 6 years ago
php-activerecord.dockerfile 60535c5cc2 Update php to Ubuntu 19.04 and nginx 1.15.9 (#4786) 6 years ago
php-eloquent.dockerfile 60535c5cc2 Update php to Ubuntu 19.04 and nginx 1.15.9 (#4786) 6 years ago
php-h2o.dockerfile 05a83fee70 H2O: Make the start-servers.sh script reusable (#4875) 6 years ago
php-laravel-query-builder.dockerfile 60535c5cc2 Update php to Ubuntu 19.04 and nginx 1.15.9 (#4786) 6 years ago
php-ngx.dockerfile f6e9848e77 Update ngx_php to v0.19 (#5025) 6 years ago
php-pgsql-raw.dockerfile 60535c5cc2 Update php to Ubuntu 19.04 and nginx 1.15.9 (#4786) 6 years ago
php-pools.dockerfile 60535c5cc2 Update php to Ubuntu 19.04 and nginx 1.15.9 (#4786) 6 years ago
php-raw7-tcp.dockerfile 60535c5cc2 Update php to Ubuntu 19.04 and nginx 1.15.9 (#4786) 6 years ago
php-unit.dockerfile 127ef6fb3b Updated Unit to php7.3 (#4990) 6 years ago
php.dockerfile 60535c5cc2 Update php to Ubuntu 19.04 and nginx 1.15.9 (#4786) 6 years ago
plaintext.php 46394ea86a Faster PHP plaintext (#4959) 6 years ago
updateraw.php 96a0c5429e PHP PDO use prepared statements in db server (#4862) 6 years ago

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