Skip to content

Commit 16e4311

Browse files
committed
Code validated by PHPBenchmarks kit 1.0.4
1 parent 5edd027 commit 16e4311

9 files changed

+151
-28
lines changed

.phpbenchmarks/codeLink.sh

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

33
declare -A codeLinks=(
4-
[controller]="http://www.test.com"
5-
[route]="http://"
4+
[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

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ 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

14-
readonly PHPBENCHMARKS_MAIN_REPOSITORY="symfony/framework-bundle"
14+
readonly PHPBENCHMARKS_DEPENDENCY_NAME="symfony/framework-bundle"
1515

16-
readonly PHPBENCHMARKS_MAJOR_VERSION=4
17-
readonly PHPBENCHMARKS_MINOR_VERSION=2
18-
readonly PHPBENCHMARKS_BUGFIX_VERSION=2
16+
readonly PHPBENCHMARKS_DEPENDENCY_MAJOR_VERSION=4
17+
readonly PHPBENCHMARKS_DEPENDENCY_MINOR_VERSION=2
18+
readonly PHPBENCHMARKS_DEPENDENCY_BUGFIX_VERSION=2

.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

+16-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
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

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

1111
Benchmarks results are available for Apache Bench and Siege, and PHP 5.6 to 7.3.
1212

1313
Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).
1414

15-
## What is this repository ?
15+
## What is this repository?
1616

1717
It contains Symfony installation `only`.
1818
To reuse code between minor versions, features for benchmarks are not coded in this repository
@@ -30,3 +30,17 @@ See all Symfony benchmarked versions on [select version page](http://www.phpbenc
3030
## Community
3131

3232
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
45+
46+
Note that all components do not have all benchmark types.

composer.json

+14-15
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@
1010
"symfony/flex": "^1.1",
1111
"symfony/framework-bundle": "4.2.2",
1212
"symfony/yaml": "4.2.2",
13-
"phpbenchmarks/symfony-common": "4.1.1"
13+
"symfony/routing": "4.2.2",
14+
"symfony/http-foundation": "4.2.2",
15+
"symfony/event-dispatcher": "4.2.2",
16+
"symfony/debug": "4.2.2",
17+
"symfony/http-kernel": "4.2.2",
18+
"symfony/finder": "4.2.2",
19+
"symfony/filesystem": "4.2.2",
20+
"symfony/dependency-injection": "4.2.2",
21+
"symfony/config": "4.2.2",
22+
"symfony/var-exporter": "4.2.2",
23+
"symfony/cache": "4.2.2",
24+
"phpbenchmarks/symfony-common": "4.1.1",
25+
"phpbenchmarks/benchmark-kit": "~1.0.4"
1426
},
1527
"config": {
1628
"preferred-install": {
@@ -32,20 +44,7 @@
3244
"symfony/polyfill-php56": "*"
3345
},
3446
"conflict": {
35-
"symfony/symfony": "*",
36-
"https://github.com/composer/composer/issues/7827": "0.0.0",
37-
"https://github.com/symfony/symfony/issues/29581": "0.0.0",
38-
"symfony/routing": ">=4.3.0",
39-
"symfony/http-foundation": ">=4.3.0",
40-
"symfony/event-dispatcher": ">=4.3.0",
41-
"symfony/debug": ">=4.3.0",
42-
"symfony/http-kernel": ">=4.3.0",
43-
"symfony/finder": ">=4.3.0",
44-
"symfony/filesystem": ">=4.3.0",
45-
"symfony/dependency-injection": ">=4.3.0",
46-
"symfony/config": ">=4.3.0",
47-
"symfony/var-exporter": ">=4.3.0",
48-
"symfony/cache": ">=4.3.0"
47+
"symfony/symfony": "*"
4948
},
5049
"extra": {
5150
"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.

symfony.lock

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"phpbenchmarks/benchmark-kit": {
3+
"version": "1.0.3"
4+
},
25
"phpbenchmarks/symfony-common": {
36
"version": "4.1.0"
47
},

0 commit comments

Comments
 (0)