Joan Miquel 7cffd9d035 Eloquent db persistent connection (#4575) 6 tahun lalu
..
deploy 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
eloquent 7cffd9d035 Eloquent db persistent connection (#4575) 6 tahun lalu
models c791a06013 name php properly 11 tahun lalu
README.md 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
apc.php c791a06013 name php properly 11 tahun lalu
benchmark_config.json 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
dborm.php 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
dbraw.php 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
fortune.php 4ab2980fe6 Lower keepalive requests (#4384) 6 tahun lalu
info.php 6674dd637c Update and reconfigure PHP stack (#3291) 7 tahun lalu
json.php 6674dd637c Update and reconfigure PHP stack (#3291) 7 tahun lalu
php-activerecord.dockerfile 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
php-eloquent.dockerfile 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
php-h2o.dockerfile 19cef8bcec Update H2o conf (#4367) 6 tahun lalu
php-laravel-query-builder.dockerfile 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
php-ngx.dockerfile 2c850faaa2 Update php-ngx (#4405) 6 tahun lalu
php-pgsql-raw.dockerfile 50971b71a0 Revert to 1024 children (#4399) 6 tahun lalu
php-php5-raw.dockerfile 50971b71a0 Revert to 1024 children (#4399) 6 tahun lalu
php-php5.dockerfile 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
php-pools.dockerfile a99e1113ef Revert "Php pools (#4423)" (#4427) 6 tahun lalu
php-raw7-tcp.dockerfile 50971b71a0 Revert to 1024 children (#4399) 6 tahun lalu
php-raw7.dockerfile 50971b71a0 Revert to 1024 children (#4399) 6 tahun lalu
php.dockerfile 782794b91b Create new php-eloquent and php-laravel-query-builder tests (#4530) 6 tahun lalu
plaintext.php c791a06013 name php properly 11 tahun lalu
updateraw.php 6fce84a278 WIP: Dockerify everything (#3457) 7 tahun lalu

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.

JSON Encoding Test

Use the PHP standard JSON encoder

Data-Store/Database Mapping Test

Infrastructure Software Versions

The tests were run with:

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