Skip to content

Commit

Permalink
Compatibilith with benchmark kit 4.0.0-DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Jan 17, 2020
1 parent 7800dd4 commit 51a5cc3
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 104 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '2.1'

jobs:
ValidateBenchmark:
docker:
- image: phpbenchmarks/benchmark-kit:4
working_directory: /var/www/benchmark
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:all"

workflows:
version: '2.1'
BenchmarkKit:
jobs:
- ValidateBenchmark
85 changes: 0 additions & 85 deletions .phpbenchmarks/AbstractComponentConfiguration.php

This file was deleted.

12 changes: 12 additions & 0 deletions .phpbenchmarks/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
component:
id: 1
benchmark:
type: 6
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
jsonSerialization: 'https://github.com/phpbenchmarks/php/tree/7.2.26_json-serialization-hello-world_0/public/index.php#L12'
coreDependency:
name: php
version: 7.2.26
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 All @@ -12,6 +12,4 @@ server {
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;
}

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.2/php.ini
Empty file.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@

## 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.

Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).

## What is this repository?

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.
It contains PHP benchmark code.

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

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:
We do not follow semantic version for this repository.

`W` PHP major version.
Here is an explanation about our versioning system:

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

`Y` PHP bugfix version.

`Z` Benchmark type: `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,8 +3,8 @@
"license": "proprietary",
"type": "project",
"require": {
"php": "7.2.*",
"php": "7.2.26",
"ext-json": "*",
"phpbenchmarks/benchmark-json-serialization-hello-world": "1.0.0"
}
}
}
2 changes: 0 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@
} else {
json_encode(BenchmarkService::getDataToSerialize());
}

// require phpbenchmarks stats.php here when needed

0 comments on commit 51a5cc3

Please sign in to comment.