Skip to content

Commit bf9b86e

Browse files
committed
Compatibility with Benchmark kit 4 and update PHP version to 7.4.2
1 parent 491bda5 commit bf9b86e

File tree

12 files changed

+45
-92
lines changed

12 files changed

+45
-92
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ jobs:
55
docker:
66
- image: phpbenchmarks/benchmark-kit:4
77
working_directory: /var/www/benchmark
8-
environment:
9-
NGINX_PORT: 80
108
steps:
119
- checkout
1210
- run:
1311
name: /var/entrypoint.sh
1412
command: /var/entrypoint.sh --nginx-as-service
1513
- run:
1614
name: "benchmark:validate"
17-
command: "/var/benchmark-kit/bin/console benchmark:validate"
15+
command: "/var/benchmark-kit/bin/console benchmark:validate:all"
1816

1917
workflows:
2018
version: '2.1'

.gitignore

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

.phpbenchmarks/Configuration.php

Lines changed: 0 additions & 71 deletions
This file was deleted.

.phpbenchmarks/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
component:
2+
id: 1
3+
benchmark:
4+
type: 4
5+
relativeUrl: /
6+
sourceCode:
7+
entryPoint: public/index.php
8+
urls:
9+
template: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php'
10+
templatingLayout: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L6'
11+
templatingBlocks: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/templates/layout/layout_start.php#L31'
12+
templatingFunctions: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L8'
13+
templatingMacros: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L432'
14+
templatingEscapeStringHtml: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#856'
15+
templatingEscapeStringJs: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#2877'
16+
templatingVariables: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L5933'
17+
templatingOutputRaw: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L5933'
18+
templatingOutputUnknownVariables: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L6855'
19+
templatingOutputMethodCalls: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L7277'
20+
templatingIncludeTemplates: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-small-overload_0/public/index.php#L9308'
21+
coreDependency:
22+
name: php
23+
version: 7.4.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
server {
2-
listen 80;
2+
listen ____PORT____;
33
server_name ____HOST____;
44
root ____INSTALLATION_PATH____/public;
55
location / {

.phpbenchmarks/composer/composer.lock.php7.4 renamed to .phpbenchmarks/php/7.4/composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
set -e
44

5-
# add commands to initialize benchmark: clear cache and logs, warm up cache etc
65
composer install --no-dev --classmap-authoritative --ansi

.phpbenchmarks/php/7.4/php.ini

Whitespace-only changes.

.phpbenchmarks/php/7.4/preload.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
require(__DIR__ . '/../../../public/index.php');
File renamed without changes.

0 commit comments

Comments
 (0)