|
@@ -1,26 +1,28 @@
|
|
|
-#PHP Benchmarking Test
|
|
|
+# 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](http://www.php.net/manual/en/function.json-encode.php)
|
|
|
+## Infrastructure Software Versions
|
|
|
+The tests were run with [PHP Version 7.3.*](https://www.php.net/) + OPcache
|
|
|
|
|
|
-* [JSON test source](json.php)
|
|
|
+### Platforms
|
|
|
|
|
|
-### Data-Store/Database Mapping Test
|
|
|
+* [php-fpm 7.3.*](https://www.php.net/manual/en/install.fpm.php)
|
|
|
+* [nginx unit 1.9.0](https://unit.nginx.org/) (PHP 7.0)
|
|
|
+* [ngx-php 0.0.18](https://github.com/rryqszq4/ngx_php7) (Embeded php in nginx)
|
|
|
|
|
|
-* [Database test source Raw](dbraw.php)
|
|
|
-* [Database test source ORM](dborm.php)
|
|
|
+### Webservers
|
|
|
|
|
|
-## Infrastructure Software Versions
|
|
|
-The tests were run with:
|
|
|
+* [nginx 1.15.9](https://nginx.org/)
|
|
|
+* [h2o 2.2.5](https://h2o.examp1e.net/)
|
|
|
|
|
|
-* [PHP Version 7.3.2](http://www.php.net/) with FPM and OPcache
|
|
|
-* [nginx 1.15.5](http://nginx.org/)
|
|
|
-* [MySQL 5.7.25](https://dev.mysql.com/)
|
|
|
+### Databases
|
|
|
+
|
|
|
+* [MySQL 5.7.27](https://dev.mysql.com/)
|
|
|
+* [PostgreSQL 11](https://www.postgresql.org/)
|
|
|
|
|
|
## ActiveRecord
|
|
|
|
|
@@ -30,7 +32,6 @@ The tests were run with:
|
|
|
|
|
|
* [illuminate/database 5.8](https://github.com/illuminate/database)
|
|
|
|
|
|
-
|
|
|
The Laravel query builder / eloquent ORM components can be run separately from the Laravel framework.
|
|
|
([Instructions](https://github.com/illuminate/database)) This is used for two tests:
|
|
|
|
|
@@ -50,7 +51,6 @@ also illustrates the overhead of the Laravel frontend components relative to the
|
|
|
|
|
|
http://localhost/json.php
|
|
|
|
|
|
-
|
|
|
### Data-Store/Database Mapping Test
|
|
|
|
|
|
Raw:
|