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 13, 2020
1 parent ddac689 commit 734c227
Show file tree
Hide file tree
Showing 21 changed files with 15,124 additions and 15,054 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
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.idea/
vendor/
composer.lock
/composer.lock
/vendor
17 changes: 17 additions & 0 deletions .phpbenchmarks/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
component:
id: 1
benchmark:
type: 3
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
entryPoint: 'https://github.com/phpbenchmarks/php/tree/7.0.33_rest-api_0/public/index.php'
randomizeLanguageDispatchEvent: 'https://github.com/phpbenchmarks/php/tree/7.0.33_rest-api_0/public/index.php#L51'
randomizeLanguageEventListener: 'https://github.com/phpbenchmarks/php/tree/7.0.33_rest-api_0/src/Translation/TranslationService.php#L11'
translations: 'https://github.com/phpbenchmarks/php/tree/7.0.33_rest-api_0/translations/phpbenchmarks.en_GB.php'
translate: 'https://github.com/phpbenchmarks/php/tree/7.0.33_rest-api_0/public/index.php#L21'
serialize: 'https://github.com/phpbenchmarks/php/tree/7.0.33_rest-api_0/public/index.php#L58'
coreDependency:
name: php
version: 7.0.33
15 changes: 15 additions & 0 deletions .phpbenchmarks/nginx/vhost.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen ____PORT____;
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;
}
}
18 changes: 10 additions & 8 deletions composer.lock.php7.0 → .phpbenchmarks/php/7.0/composer.lock

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

5 changes: 5 additions & 0 deletions .phpbenchmarks/php/7.0/initBenchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

composer install --no-dev --classmap-authoritative --ansi
Empty file added .phpbenchmarks/php/7.0/php.ini
Empty file.
1 change: 1 addition & 0 deletions .phpbenchmarks/php/7.0/responseBody/responseBody.en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"aa_BB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"aa_BB 2,000","type":{"id":1,"name":"Type","translated":"aa_BB 3,000"}}]}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]},{"id":1,"login":"phpbenchmarks","createdAt":"2017-10-30 18:03:00","translated":"en_GB 1,000","comments":[{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}},{"id":1,"message":"http:\/\/www.php-benchmarks.com","translated":"en_GB 2,000","type":{"id":1,"name":"Type","translated":"en_GB 3,000"}}]}]
Loading

0 comments on commit 734c227

Please sign in to comment.