Skip to content

Commit

Permalink
Compatibility with Benchmark kit 4.0.0-DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Jan 10, 2020
1 parent b1949ad commit d060f2f
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 87 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
70 changes: 0 additions & 70 deletions .phpbenchmarks/Configuration.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: 1
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
entryPoint: 'https://github.com/phpbenchmarks/php/blob/7.4.0.1/public/index.php'
coreDependency:
name: php
version: 7.4.1
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.
6 changes: 6 additions & 0 deletions .phpbenchmarks/php/7.4/preload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

declare(strict_types=1);

$rootDir = __DIR__ . '/../../..';
require($rootDir . '/public/index.php');
16 changes: 9 additions & 7 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 @@ -33,12 +33,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 patch version.

`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,6 +3,6 @@
"license": "proprietary",
"type": "project",
"require": {
"php": "7.4.0"
"php": "7.4.1"
}
}
}
2 changes: 0 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
declare(strict_types=1);

echo 'Hello World !';

// require phpbenchmarks stats.php here when needed

0 comments on commit d060f2f

Please sign in to comment.