diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4fbb073 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor/ +/composer.lock diff --git a/.phpbenchmarks/AbstractComponentConfiguration.php b/.phpbenchmarks/AbstractComponentConfiguration.php new file mode 100644 index 0000000..b15de03 --- /dev/null +++ b/.phpbenchmarks/AbstractComponentConfiguration.php @@ -0,0 +1,85 @@ + 'https://github.com/phpbenchmarks/php/blob/php_7.2_json-serialization-hello-world/public/index.php' + ]; + } +} diff --git a/.phpbenchmarks/composer.lock.php7.3 b/.phpbenchmarks/composer.lock.php7.3 new file mode 100644 index 0000000..af2f140 --- /dev/null +++ b/.phpbenchmarks/composer.lock.php7.3 @@ -0,0 +1,51 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "55cef1d6dba145454a8a242dcc2ceece", + "packages": [ + { + "name": "phpbenchmarks/benchmark-json-serialization-hello-world", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/phpbenchmarks/benchmark-json-serialization-hello-world.git", + "reference": "9284d31f5ebf7fc9d61dec4e6caf93f45545d7bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpbenchmarks/benchmark-json-serialization-hello-world/zipball/9284d31f5ebf7fc9d61dec4e6caf93f45545d7bc", + "reference": "9284d31f5ebf7fc9d61dec4e6caf93f45545d7bc", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "PhpBenchmarks\\BenchmarkJsonSerializationHelloWorld\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "description": "Data for JSON serialization of Hello world benchmark on phpbenchmarks.com.", + "time": "2019-05-11T19:31:47+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": "7.3.*", + "ext-json": "*" + }, + "platform-dev": [] +} diff --git a/.phpbenchmarks/initBenchmark.sh b/.phpbenchmarks/initBenchmark.sh new file mode 100755 index 0000000..f61c58a --- /dev/null +++ b/.phpbenchmarks/initBenchmark.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -e + +composer install --no-dev --classmap-authoritative --ansi diff --git a/.phpbenchmarks/responseBody/responseBody.json b/.phpbenchmarks/responseBody/responseBody.json new file mode 100644 index 0000000..0372188 --- /dev/null +++ b/.phpbenchmarks/responseBody/responseBody.json @@ -0,0 +1 @@ +["Hello World !"] \ No newline at end of file diff --git a/.phpbenchmarks/vhost.conf b/.phpbenchmarks/vhost.conf new file mode 100644 index 0000000..2caa86c --- /dev/null +++ b/.phpbenchmarks/vhost.conf @@ -0,0 +1,17 @@ +server { + listen 80; + server_name ____HOST____; + root ____INSTALLATION_PATH____/public; + location / { + try_files $uri /index.php$is_args$args; + } + location ~ ^/(index).php(/|$) { + fastcgi_pass unix:/run/php/____PHP_FPM_SOCK____; + fastcgi_split_path_info ^(.+.php)(/.*)$; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param HTTPS off; + } + error_log /var/log/nginx/benchmark_error.log; + access_log /var/log/nginx/benchmark_access.log; +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..b0ec41b --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +
+
+
+ www.phpbenchmarks.com
+