Skip to content

Commit 8304d8b

Browse files
committed
Compatibility with benchmark kit 4.0.0-DEV
1 parent acd1761 commit 8304d8b

21 files changed

+15124
-15053
lines changed

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '2.1'
2+
3+
jobs:
4+
ValidateBenchmark:
5+
docker:
6+
- image: phpbenchmarks/benchmark-kit:4
7+
working_directory: /var/www/benchmark
8+
steps:
9+
- checkout
10+
- run:
11+
name: /var/entrypoint.sh
12+
command: /var/entrypoint.sh --nginx-as-service
13+
- run:
14+
name: "benchmark:validate"
15+
command: "/var/benchmark-kit/bin/console benchmark:validate:all"
16+
17+
workflows:
18+
version: '2.1'
19+
BenchmarkKit:
20+
jobs:
21+
- ValidateBenchmark

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
.idea/
2-
vendor/
3-
composer.lock
1+
/composer.lock
2+
/vendor

.phpbenchmarks/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
component:
2+
id: 1
3+
benchmark:
4+
type: 3
5+
relativeUrl: /
6+
sourceCode:
7+
entryPoint: public/index.php
8+
urls:
9+
entryPoint: 'https://github.com/phpbenchmarks/php/tree/7.2.26_rest-api_0/public/index.php'
10+
randomizeLanguageDispatchEvent: 'https://github.com/phpbenchmarks/php/tree/7.2.26_rest-api_0/public/index.php#L51'
11+
randomizeLanguageEventListener: 'https://github.com/phpbenchmarks/php/tree/7.2.26_rest-api_0/src/Translation/TranslationService.php#L11'
12+
translations: 'https://github.com/phpbenchmarks/php/tree/7.2.26_rest-api_0/translations/phpbenchmarks.en_GB.php'
13+
translate: 'https://github.com/phpbenchmarks/php/tree/7.2.26_rest-api_0/public/index.php#L21'
14+
serialize: 'https://github.com/phpbenchmarks/php/tree/7.2.26_rest-api_0/public/index.php#L58'
15+
coreDependency:
16+
name: php
17+
version: 7.2.26

.phpbenchmarks/nginx/vhost.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
server {
2+
listen ____PORT____;
3+
server_name ____HOST____;
4+
root ____INSTALLATION_PATH____/public;
5+
location / {
6+
try_files $uri /index.php$is_args$args;
7+
}
8+
location ~ ^/(index).php(/|$) {
9+
fastcgi_pass unix:/run/php/____PHP_FPM_SOCK____;
10+
fastcgi_split_path_info ^(.+.php)(/.*)$;
11+
include fastcgi_params;
12+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
13+
fastcgi_param HTTPS off;
14+
}
15+
}

composer.lock.php7.2 renamed to .phpbenchmarks/php/7.2/composer.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
composer install --no-dev --classmap-authoritative --ansi

.phpbenchmarks/php/7.2/php.ini

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}}]}]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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"}}]}]

0 commit comments

Comments
 (0)