Skip to content

Commit

Permalink
Compatibility with Benchmark kit 4 and update PHP version to 7.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Feb 14, 2020
1 parent 0f982c0 commit 36d2c86
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 90 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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/composer.lock
/.idea/
/vendor/
/.idea
/vendor
71 changes: 0 additions & 71 deletions .phpbenchmarks/Configuration.php

This file was deleted.

23 changes: 23 additions & 0 deletions .phpbenchmarks/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
component:
id: 1
benchmark:
type: 5
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
template: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php'
templatingLayout: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L6'
templatingBlocks: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/templates/layout/layout_start.php#L10'
templatingFunctions: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L8'
templatingMacros: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L4032'
templatingEscapeStringHtml: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#8056'
templatingEscapeStringJs: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#28077'
templatingVariables: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L5933'
templatingOutputRaw: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L58133'
templatingOutputUnknownVariables: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L67155'
templatingOutputMethodCalls: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L71177'
templatingIncludeTemplates: 'https://github.com/phpbenchmarks/php/tree/7.4.2_templating-big-overload_0/public/index.php#L91208'
coreDependency:
name: php
version: 7.4.2
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.
1 change: 1 addition & 0 deletions .phpbenchmarks/php/7.4/preload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
18 changes: 9 additions & 9 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 @@ -18,8 +18,6 @@ It contains PHP benchmark code.

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

You can find source code links into [Configuration::getSourceCodeUrls()](.phpbenchmarks/Configuration.php).

## Benchmarks

You can find PHP 7.4 benchmarks results on
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:

`W` PHP major version.
We do not follow semantic version for this repository.

`X` PHP minor version.
Here is an explanation about our versioning system:

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

`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.2"
}
}
}

0 comments on commit 36d2c86

Please sign in to comment.