Skip to content

Commit 91e3251

Browse files
committed
Compatibility with benchmark kit 4.0.0-DEV
1 parent 565ddd1 commit 91e3251

File tree

518 files changed

+606
-536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

518 files changed

+606
-536
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+
/vendor
2+
/composer.lock

.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: 5
5+
relativeUrl: /
6+
sourceCode:
7+
entryPoint: public/index.php
8+
urls:
9+
template: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php'
10+
templatingLayout: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L6'
11+
templatingBlocks: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/templates/layout/layout_start.php#L10'
12+
templatingFunctions: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L8'
13+
templatingMacros: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L4032'
14+
templatingEscapeStringHtml: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#8056'
15+
templatingEscapeStringJs: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#28077'
16+
templatingVariables: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L5933'
17+
templatingOutputRaw: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L58133'
18+
templatingOutputUnknownVariables: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L67155'
19+
templatingOutputMethodCalls: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L71177'
20+
templatingIncludeTemplates: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L91208'
21+
coreDependency:
22+
name: php
23+
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: 3 additions & 3 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.

response.html renamed to .phpbenchmarks/php/7.2/responseBody/responseBody.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
7-
<title>Small overload benchmark</title>
7+
<title>Big overload benchmark</title>
88
</head>
99
<body>
1010
<div class="row">

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,41 @@
44
<a href="http://www.phpbenchmarks.com" target="_blank">www.phpbenchmarks.com</a>
55
</p>
66

7-
## What is www.phpbenchmarks.com ?
7+
## What is www.phpbenchmarks.com?
88

9-
You will find lot of benchmarks for PHP frameworks and template engines.
9+
You will find a lot of benchmarks for PHP and PHP libraries on [phpbenchmarks.com](http://www.phpbenchmarks.com).
1010

11-
You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.2.
11+
Benchmarks results are available from PHP 5.6 to latest version.
1212

13-
## What is this repository ?
13+
Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).
1414

15-
It's benchmark common code for PHP benchmarks.
15+
## What is this repository?
1616

17-
Switch branch to select your PHP major version and benchmark you want to see.
17+
It contains PHP benchmark code.
1818

19-
See all PHP benchmarked versions on [phpbenchmarks/php](https://github.com/phpbenchmarks/php).
20-
21-
You can find how we benchmark on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark-protocol.html).
19+
Switch branch to select version and benchmark you want to see.
2220

2321
## Benchmarks
2422

25-
You can find all PHP benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/php.html).
23+
You can find PHP 7.2 benchmarks results on
24+
[benchmarks results page](http://www.phpbenchmarks.com/en/benchmark/php/7.2).
25+
26+
See all PHP benchmarked versions on [select version page](http://www.phpbenchmarks.com/en/benchmark/php/version).
27+
28+
## Community
29+
30+
Go to [community page](http://www.phpbenchmarks.com/en/community) to see the Hall of fame, or download the benchmark kit to add your code!
31+
32+
## How version works?
33+
34+
We do not follow semantic version for this repository.
35+
36+
Here is an explanation about our versioning system:
37+
38+
`X.Y.Z_benchmark-slug_W`
2639

27-
Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark !
40+
* `X`: PHP major version.
41+
* `Y`: PHP minor version.
42+
* `Z`: PHP patch version.
43+
* `benchmark-slug`: slug of the benchmark, list available on [documentation page](http://www.phpbenchmarks.com/en/documentation).
44+
* `W`: benchmark version

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"license": "proprietary",
44
"type": "project",
55
"require": {
6-
"php": "7.2.*"
6+
"php": "7.2.26"
77
}
8-
}
8+
}

init_benchmark.sh

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

0 commit comments

Comments
 (0)