diff --git a/.phpbenchmarks/AbstractComponentConfiguration.php b/.phpbenchmarks/AbstractComponentConfiguration.php index b15de03..d5df375 100644 --- a/.phpbenchmarks/AbstractComponentConfiguration.php +++ b/.phpbenchmarks/AbstractComponentConfiguration.php @@ -79,7 +79,7 @@ public static function getBenchmarkType(): int public static function getSourceCodeUrls(): array { return [ - 'serialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.2_json-serialization-hello-world/public/index.php' + 'jsonSerialization' => 'https://github.com/phpbenchmarks/php/blob/php_7.2_json-serialization-hello-world/public/index.php#L12' ]; } } diff --git a/.phpbenchmarks/composer.lock.php7.2 b/.phpbenchmarks/composer/composer.lock.php7.2 similarity index 100% rename from .phpbenchmarks/composer.lock.php7.2 rename to .phpbenchmarks/composer/composer.lock.php7.2 diff --git a/README.md b/README.md index b0ec41b..f162035 100644 --- a/README.md +++ b/README.md @@ -4,24 +4,41 @@ www.phpbenchmarks.com

-## What is www.phpbenchmarks.com ? +## What is www.phpbenchmarks.com? -You will find lot of benchmarks for PHP frameworks and template engines. +You will find lot of benchmarks for PHP frameworks, template engines and JSON serializers on [phpbenchmarks.com](http://www.phpbenchmarks.com). -You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.3. +Benchmarks results are available from PHP 5.6 to latest version. -## What is this repository ? +Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol). -It's benchmark common code for PHP benchmarks. +## What is this repository? -Switch branch to select your PHP major version and benchmark you want to see. +It contains PHP installation `only`. +To reuse code between minor versions, features for benchmarks are not coded in this repository +but in [phpbenchmarks/php-common](https://github.com/phpbenchmarks/php-common) repository. -See all PHP benchmarked versions on [phpbenchmarks/php](https://github.com/phpbenchmarks/php). - -You can find how we benchmark on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark-protocol.html). +Switch branch to select version and benchmark you want to see. ## Benchmarks -You can find all PHP benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/php.html). +You can find PHP 7.2 benchmarks results on +[benchmarks results page](http://www.phpbenchmarks.com/en/benchmark/php/7.2). + +See all PHP benchmarked versions on [select version page](http://www.phpbenchmarks.com/en/benchmark/php/version). + +## Community + +Go to [community page](http://www.phpbenchmarks.com/en/community) to see the Hall of fame, or download the benchmark kit to add your code! + +## How version works? + +We do not follow semantic version for this repository. Here is an explanation about our versioning system: + +`W` PHP major version. + +`X` PHP minor version. + +`Y` PHP bugfix version. -Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark ! +`Z` Benchmark type: `6` JSON serialization of Hello world, `7` Small JSON serialization, `8` Big JSON serialization.