Skip to content

Commit f1ded91

Browse files
committed
Code validated by PHPBenchmarks kit 1.0.3
1 parent 4f7a238 commit f1ded91

10 files changed

+159
-60
lines changed

.phpbenchmarks/codeLink.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

33
declare -A codeLinks=(
4-
[controller]="https://github.com/phpbenchmarks/symfony-common/blob/4.1.1/Controller/HelloWorldController.php"
54
[route]="https://github.com/phpbenchmarks/symfony-common/blob/4.1.1/Resources/config/routing.yml"
5+
[controller]="https://github.com/phpbenchmarks/symfony-common/blob/4.1.1/Controller/HelloWorldController.php"
66
)

.phpbenchmarks/configuration.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ readonly PHPBENCHMARKS_PHP_7_1_ENABLED=true
66
readonly PHPBENCHMARKS_PHP_7_2_ENABLED=true
77
readonly PHPBENCHMARKS_PHP_7_3_ENABLED=true
88

9-
readonly PHPBENCHMARKS_NAME="Symfony"
10-
readonly PHPBENCHMARKS_SLUG="symfony"
9+
readonly PHPBENCHMARKS_COMPONENT_NAME="Symfony"
10+
readonly PHPBENCHMARKS_COMPONENT_SLUG="symfony"
1111

1212
readonly PHPBENCHMARKS_BENCHMARK_URL="/benchmark/helloworld"
1313

.phpbenchmarks/initBenchmark.sh

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ function clearCacheAndLogs() {
1313
}
1414

1515
function initBenchmark() {
16+
# because of Symfony Flex bug (https://github.com/symfony/symfony/issues/29581), we need to remove vendor
17+
rm -rf vendor/
1618
clearCacheAndLogs
1719

1820
composer install --no-dev --classmap-authoritative

README.md

+30-11
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,43 @@
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 lot of benchmarks for PHP frameworks and template engines on [phpbenchmarks.com](http://www.phpbenchmarks.com).
1010

11-
You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.3.
11+
Benchmarks results are available for Apache Bench and Siege, and PHP 5.6 to 7.3.
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 Symfony benchmarks.
15+
## What is this repository?
1616

17-
Switch branch to select your Symfony major version and benchmark you want to see.
17+
It contains Symfony installation `only`.
18+
To reuse code between minor versions, features for benchmarks are not coded in this repository
19+
but in [phpbenchmarks/symfony-common](https://github.com/phpbenchmarks/symfony-common) repository.
1820

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

2323
## Benchmarks
2424

25-
You can find all Symfony benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/symfony.html).
25+
You can find Symfony 4.1 benchmarks results on
26+
[benchmarks results page](http://www.phpbenchmarks.com/en/benchmark/symfony/4.1).
27+
28+
See all Symfony benchmarked versions on [select version page](http://www.phpbenchmarks.com/en/benchmark/symfony/version).
29+
30+
## Community
31+
32+
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!
33+
34+
## How version works?
35+
36+
We do not follow semantic version for this repository. Here is an explanation about our versioning system:
37+
38+
`W` Benchmarked component (Symfony, Laravel, Twig etc) major version
39+
40+
`X` Benchmarked component minor version
41+
42+
`Y` Benchmarked component bugfix version
43+
44+
`Z` Benchmark type: `1` Hello World, `3` REST API, `4` Templating small overload, `5` Templating big overload
2645

27-
Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark !
46+
Note that all components do not have all benchmark types.

composer.json

+13-15
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@
88
"symfony/flex": "^1.0",
99
"symfony/framework-bundle": "4.0.15",
1010
"symfony/yaml": "4.0.15",
11-
"phpbenchmarks/symfony-common": "4.1.1"
11+
"symfony/routing": "4.0.15",
12+
"symfony/debug": "4.0.15",
13+
"symfony/http-foundation": "4.0.15",
14+
"symfony/event-dispatcher": "4.0.15",
15+
"symfony/http-kernel": "4.0.15",
16+
"symfony/finder": "4.0.15",
17+
"symfony/filesystem": "4.0.15",
18+
"symfony/dependency-injection": "4.0.15",
19+
"symfony/config": "4.0.15",
20+
"symfony/cache": "4.0.15",
21+
"phpbenchmarks/symfony-common": "4.1.1",
22+
"phpbenchmarks/benchmark-kit": "~1.0.3"
1223
},
1324
"config": {
1425
"preferred-install": {
@@ -22,20 +33,7 @@
2233
}
2334
},
2435
"conflict": {
25-
"symfony/symfony": "*",
26-
"https://github.com/composer/composer/issues/7827": "0.0.0",
27-
"https://github.com/symfony/symfony/issues/29581": "0.0.0",
28-
"symfony/routing": ">=4.1.0",
29-
"symfony/http-foundation": ">=4.1.0",
30-
"symfony/event-dispatcher": ">=4.1.0",
31-
"symfony/debug": ">=4.1.0",
32-
"symfony/http-kernel": ">=4.1.0",
33-
"symfony/finder": ">=4.1.0",
34-
"symfony/filesystem": ">=4.1.0",
35-
"symfony/dependency-injection": ">=4.1.0",
36-
"symfony/config": ">=4.1.0",
37-
"symfony/var-exporter": ">=4.1.0",
38-
"symfony/cache": ">=4.1.0"
36+
"symfony/symfony": "*"
3937
},
4038
"extra": {
4139
"symfony": {

composer.lock.php7.1

+36-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.lock.php7.2

+36-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.lock.php7.3

+36-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

init_benchmark.sh

-28
This file was deleted.

symfony.lock

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"doctrine/lexer": {
1212
"version": "v1.0.1"
1313
},
14+
"phpbenchmarks/benchmark-kit": {
15+
"version": "1.0.3"
16+
},
1417
"phpbenchmarks/benchmark-rest-data": {
1518
"version": "1.0.0"
1619
},

0 commit comments

Comments
 (0)