Browse Source

Code validated by PHPBenchmarks kit 1.0.4

tags/4.2.2.1
Steevan BARBOYON 6 years ago
parent
commit
16e4311638

+ 2
- 2
.phpbenchmarks/codeLink.sh View File

@@ -1,6 +1,6 @@
1 1
 #!/usr/bin/env bash
2 2
 
3 3
 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"
6 6
 )

+ 6
- 6
.phpbenchmarks/configuration.sh View File

@@ -6,13 +6,13 @@ readonly PHPBENCHMARKS_PHP_7_1_ENABLED=true
6 6
 readonly PHPBENCHMARKS_PHP_7_2_ENABLED=true
7 7
 readonly PHPBENCHMARKS_PHP_7_3_ENABLED=true
8 8
 
9
-readonly PHPBENCHMARKS_NAME="Symfony"
10
-readonly PHPBENCHMARKS_SLUG="symfony"
9
+readonly PHPBENCHMARKS_COMPONENT_NAME="Symfony"
10
+readonly PHPBENCHMARKS_COMPONENT_SLUG="symfony"
11 11
 
12 12
 readonly PHPBENCHMARKS_BENCHMARK_URL="/benchmark/helloworld"
13 13
 
14
-readonly PHPBENCHMARKS_MAIN_REPOSITORY="symfony/framework-bundle"
14
+readonly PHPBENCHMARKS_DEPENDENCY_NAME="symfony/framework-bundle"
15 15
 
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

+ 2
- 0
.phpbenchmarks/initBenchmark.sh View File

@@ -13,6 +13,8 @@ function clearCacheAndLogs() {
13 13
 }
14 14
 
15 15
 function initBenchmark() {
16
+    # because of Symfony Flex bug (https://github.com/symfony/symfony/issues/29581), we need to remove vendor
17
+    rm -rf vendor/
16 18
     clearCacheAndLogs
17 19
 
18 20
     composer install --no-dev --classmap-authoritative

+ 16
- 2
README.md View File

@@ -4,7 +4,7 @@
4 4
   <a href="http://www.phpbenchmarks.com" target="_blank">www.phpbenchmarks.com</a>
5 5
 </p>
6 6
 
7
-## What is www.phpbenchmarks.com ?
7
+## What is www.phpbenchmarks.com?
8 8
 
9 9
 You will find lot of benchmarks for PHP frameworks and template engines on [phpbenchmarks.com](http://www.phpbenchmarks.com).
10 10
 
@@ -12,7 +12,7 @@ Benchmarks results are available for Apache Bench and Siege, and PHP 5.6 to 7.3.
12 12
 
13 13
 Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).
14 14
 
15
-## What is this repository ?
15
+## What is this repository?
16 16
 
17 17
 It contains Symfony installation `only`.
18 18
 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
30 30
 ## Community
31 31
 
32 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
45
+
46
+Note that all components do not have all benchmark types.

+ 14
- 15
composer.json View File

@@ -10,7 +10,19 @@
10 10
         "symfony/flex": "^1.1",
11 11
         "symfony/framework-bundle": "4.2.2",
12 12
         "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"
14 26
     },
15 27
     "config": {
16 28
         "preferred-install": {
@@ -32,20 +44,7 @@
32 44
         "symfony/polyfill-php56": "*"
33 45
     },
34 46
     "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": "*"
49 48
     },
50 49
     "extra": {
51 50
         "symfony": {

+ 36
- 1
composer.lock.php7.1 View File

@@ -4,8 +4,43 @@
4 4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5
         "This file is @generated automatically"
6 6
     ],
7
-    "content-hash": "8803f5dab116915a28e759ec23ab3123",
7
+    "content-hash": "1ae5dd660efff1ae1e9528fb01b59cf9",
8 8
     "packages": [
9
+        {
10
+            "name": "phpbenchmarks/benchmark-kit",
11
+            "version": "1.0.4",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/phpbenchmarks/benchmark-kit.git",
15
+                "reference": "04b4d228cd27048326785e532c16f391bddf3520"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/phpbenchmarks/benchmark-kit/zipball/04b4d228cd27048326785e532c16f391bddf3520",
20
+                "reference": "04b4d228cd27048326785e532c16f391bddf3520",
21
+                "shasum": ""
22
+            },
23
+            "bin": [
24
+                "codeLink.sh",
25
+                "codeValidation.sh",
26
+                "composerUpdate.sh",
27
+                "initializeBranch.sh"
28
+            ],
29
+            "type": "library",
30
+            "notification-url": "https://packagist.org/downloads/",
31
+            "license": [
32
+                "proprietary"
33
+            ],
34
+            "authors": [
35
+                {
36
+                    "name": "Steevan BARBOYON",
37
+                    "email": "steevan.barboyon@gmail.com",
38
+                    "homepage": "http://www.info-droid.fr",
39
+                    "role": "Project lead"
40
+                }
41
+            ],
42
+            "time": "2019-01-28T13:01:09+00:00"
43
+        },
9 44
         {
10 45
             "name": "phpbenchmarks/symfony-common",
11 46
             "version": "4.1.1",

+ 36
- 1
composer.lock.php7.2 View File

@@ -4,8 +4,43 @@
4 4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5
         "This file is @generated automatically"
6 6
     ],
7
-    "content-hash": "8803f5dab116915a28e759ec23ab3123",
7
+    "content-hash": "1ae5dd660efff1ae1e9528fb01b59cf9",
8 8
     "packages": [
9
+        {
10
+            "name": "phpbenchmarks/benchmark-kit",
11
+            "version": "1.0.4",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/phpbenchmarks/benchmark-kit.git",
15
+                "reference": "04b4d228cd27048326785e532c16f391bddf3520"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/phpbenchmarks/benchmark-kit/zipball/04b4d228cd27048326785e532c16f391bddf3520",
20
+                "reference": "04b4d228cd27048326785e532c16f391bddf3520",
21
+                "shasum": ""
22
+            },
23
+            "bin": [
24
+                "codeLink.sh",
25
+                "codeValidation.sh",
26
+                "composerUpdate.sh",
27
+                "initializeBranch.sh"
28
+            ],
29
+            "type": "library",
30
+            "notification-url": "https://packagist.org/downloads/",
31
+            "license": [
32
+                "proprietary"
33
+            ],
34
+            "authors": [
35
+                {
36
+                    "name": "Steevan BARBOYON",
37
+                    "email": "steevan.barboyon@gmail.com",
38
+                    "homepage": "http://www.info-droid.fr",
39
+                    "role": "Project lead"
40
+                }
41
+            ],
42
+            "time": "2019-01-28T13:01:09+00:00"
43
+        },
9 44
         {
10 45
             "name": "phpbenchmarks/symfony-common",
11 46
             "version": "4.1.1",

+ 36
- 1
composer.lock.php7.3 View File

@@ -4,8 +4,43 @@
4 4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 5
         "This file is @generated automatically"
6 6
     ],
7
-    "content-hash": "8803f5dab116915a28e759ec23ab3123",
7
+    "content-hash": "1ae5dd660efff1ae1e9528fb01b59cf9",
8 8
     "packages": [
9
+        {
10
+            "name": "phpbenchmarks/benchmark-kit",
11
+            "version": "1.0.4",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/phpbenchmarks/benchmark-kit.git",
15
+                "reference": "04b4d228cd27048326785e532c16f391bddf3520"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/phpbenchmarks/benchmark-kit/zipball/04b4d228cd27048326785e532c16f391bddf3520",
20
+                "reference": "04b4d228cd27048326785e532c16f391bddf3520",
21
+                "shasum": ""
22
+            },
23
+            "bin": [
24
+                "codeLink.sh",
25
+                "codeValidation.sh",
26
+                "composerUpdate.sh",
27
+                "initializeBranch.sh"
28
+            ],
29
+            "type": "library",
30
+            "notification-url": "https://packagist.org/downloads/",
31
+            "license": [
32
+                "proprietary"
33
+            ],
34
+            "authors": [
35
+                {
36
+                    "name": "Steevan BARBOYON",
37
+                    "email": "steevan.barboyon@gmail.com",
38
+                    "homepage": "http://www.info-droid.fr",
39
+                    "role": "Project lead"
40
+                }
41
+            ],
42
+            "time": "2019-01-28T13:01:09+00:00"
43
+        },
9 44
         {
10 45
             "name": "phpbenchmarks/symfony-common",
11 46
             "version": "4.1.1",

+ 3
- 0
symfony.lock View File

@@ -1,4 +1,7 @@
1 1
 {
2
+    "phpbenchmarks/benchmark-kit": {
3
+        "version": "1.0.3"
4
+    },
2 5
     "phpbenchmarks/symfony-common": {
3 6
         "version": "4.1.0"
4 7
     },

Loading…
Cancel
Save