Skip to content

Commit

Permalink
Compatibility with benchmark kit 4 and update PHP version to 7.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Feb 14, 2020
1 parent 939aa1e commit 3c43910
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 97 deletions.
4 changes: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ jobs:
docker:
- image: phpbenchmarks/benchmark-kit:4
working_directory: /var/www/benchmark
environment:
NGINX_PORT: 80
steps:
- checkout
- run:
name: /var/entrypoint.sh
command: /var/entrypoint.sh --nginx-as-service
- run:
name: "benchmark:validate"
command: "/var/benchmark-kit/bin/console benchmark:validate"
command: "/var/benchmark-kit/bin/console benchmark:validate:all"

workflows:
version: '2.1'
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/.idea/
/vendor/
/vendor
/composer.lock
78 changes: 0 additions & 78 deletions .phpbenchmarks/Configuration.php

This file was deleted.

19 changes: 19 additions & 0 deletions .phpbenchmarks/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
component:
id: 1
benchmark:
type: 8
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
jsonSerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
integerSerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
floatSerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
stringSerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
booleanSerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
nullSerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
arraySerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
objectSerialization: 'https://github.com/phpbenchmarks/php/tree/7.4.2_json-serialization-big-overload_0/public/index.php#L15'
coreDependency:
name: php
version: 7.4.2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 80;
listen ____PORT____;
server_name ____HOST____;
root ____INSTALLATION_PATH____/public;
location / {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Empty file added .phpbenchmarks/php/7.4/php.ini
Empty file.
5 changes: 5 additions & 0 deletions .phpbenchmarks/php/7.4/preload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

declare(strict_types=1);

require(__DIR__ . '/../../../public/index.php');
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## What is www.phpbenchmarks.com?

You will find lot of benchmarks for PHP frameworks, template engines and JSON serializers on [phpbenchmarks.com](http://www.phpbenchmarks.com).
You will find a lot of benchmarks for PHP and PHP libraries on [phpbenchmarks.com](http://www.phpbenchmarks.com).

Benchmarks results are available from PHP 5.6 to latest version.

Expand All @@ -18,8 +18,6 @@ It contains PHP benchmark code.

Switch branch to select version and benchmark you want to see.

You can find source code links into [Configuration::getSourceCodeUrls()](.phpbenchmarks/Configuration.php).

## Benchmarks

You can find PHP 7.4 benchmarks results on
Expand All @@ -33,12 +31,14 @@ Go to [community page](http://www.phpbenchmarks.com/en/community) to see the Hal

## How version works?

We do not follow semantic version for this repository. Here is an explanation about our versioning system:

`W` PHP major version.
We do not follow semantic version for this repository.

`X` PHP minor version.
Here is an explanation about our versioning system:

`Y` PHP patch version.
`X.Y.Z_benchmark-slug_W`

`Z` Benchmark type: `1`: Hello world, `3`: REST API, `6` JSON serialization of Hello world, `7` Small JSON serialization, `8` Big JSON serialization.
* `X`: PHP major version.
* `Y`: PHP minor version.
* `Z`: PHP patch version.
* `benchmark-slug`: slug of the benchmark, list available on [documentation page](http://www.phpbenchmarks.com/en/documentation).
* `W`: benchmark version
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "proprietary",
"type": "project",
"require": {
"php": "7.4.0",
"php": "7.4.2",
"ext-json": "*",
"phpbenchmarks/benchmark-json-serialization-big-overload": "1.0.0"
},
Expand All @@ -12,4 +12,4 @@
"App\\": "src/"
}
}
}
}

0 comments on commit 3c43910

Please sign in to comment.