Sfoglia il codice sorgente

Code validated by PHPBenchmarks kit 1.0.3

tags/4.0.15.1
Steevan BARBOYON 6 anni fa
parent
commit
f1ded91e9b

+ 1
- 1
.phpbenchmarks/codeLink.sh Vedi File

@@ -1,6 +1,6 @@
1 1
 #!/usr/bin/env bash
2 2
 
3 3
 declare -A codeLinks=(
4
-    [controller]="https://github.com/phpbenchmarks/symfony-common/blob/4.1.1/Controller/HelloWorldController.php"
5 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
 )

+ 2
- 2
.phpbenchmarks/configuration.sh Vedi File

@@ -6,8 +6,8 @@ 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
 

+ 2
- 0
.phpbenchmarks/initBenchmark.sh Vedi 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

+ 30
- 11
README.md Vedi File

@@ -4,24 +4,43 @@
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
-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).
10 10
 
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.
12 12
 
13
-## What is this repository ?
13
+Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).
14 14
 
15
-It's benchmark common code for Symfony benchmarks.
15
+## What is this repository?
16 16
 
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.
18 20
 
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.
22 22
 
23 23
 ## Benchmarks
24 24
 
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
26 45
 
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.

+ 13
- 15
composer.json Vedi File

@@ -8,7 +8,18 @@
8 8
         "symfony/flex": "^1.0",
9 9
         "symfony/framework-bundle": "4.0.15",
10 10
         "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"
12 23
     },
13 24
     "config": {
14 25
         "preferred-install": {
@@ -22,20 +33,7 @@
22 33
         }
23 34
     },
24 35
     "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": "*"
39 37
     },
40 38
     "extra": {
41 39
         "symfony": {

+ 36
- 1
composer.lock.php7.1 Vedi 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": "6e14f3a12316df2e2b44d81808ef3d69",
7
+    "content-hash": "53d61a73d206631bf096762b25c21ac4",
8 8
     "packages": [
9
+        {
10
+            "name": "phpbenchmarks/benchmark-kit",
11
+            "version": "1.0.3",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/phpbenchmarks/benchmark-kit.git",
15
+                "reference": "b15487bb2131004098b049f59be66126f2e4d3e9"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/phpbenchmarks/benchmark-kit/zipball/b15487bb2131004098b049f59be66126f2e4d3e9",
20
+                "reference": "b15487bb2131004098b049f59be66126f2e4d3e9",
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-28T11:45:58+00:00"
43
+        },
9 44
         {
10 45
             "name": "phpbenchmarks/symfony-common",
11 46
             "version": "4.1.1",

+ 36
- 1
composer.lock.php7.2 Vedi 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": "6e14f3a12316df2e2b44d81808ef3d69",
7
+    "content-hash": "53d61a73d206631bf096762b25c21ac4",
8 8
     "packages": [
9
+        {
10
+            "name": "phpbenchmarks/benchmark-kit",
11
+            "version": "1.0.3",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/phpbenchmarks/benchmark-kit.git",
15
+                "reference": "b15487bb2131004098b049f59be66126f2e4d3e9"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/phpbenchmarks/benchmark-kit/zipball/b15487bb2131004098b049f59be66126f2e4d3e9",
20
+                "reference": "b15487bb2131004098b049f59be66126f2e4d3e9",
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-28T11:45:58+00:00"
43
+        },
9 44
         {
10 45
             "name": "phpbenchmarks/symfony-common",
11 46
             "version": "4.1.1",

+ 36
- 1
composer.lock.php7.3 Vedi 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": "6e14f3a12316df2e2b44d81808ef3d69",
7
+    "content-hash": "53d61a73d206631bf096762b25c21ac4",
8 8
     "packages": [
9
+        {
10
+            "name": "phpbenchmarks/benchmark-kit",
11
+            "version": "1.0.3",
12
+            "source": {
13
+                "type": "git",
14
+                "url": "https://github.com/phpbenchmarks/benchmark-kit.git",
15
+                "reference": "b15487bb2131004098b049f59be66126f2e4d3e9"
16
+            },
17
+            "dist": {
18
+                "type": "zip",
19
+                "url": "https://api.github.com/repos/phpbenchmarks/benchmark-kit/zipball/b15487bb2131004098b049f59be66126f2e4d3e9",
20
+                "reference": "b15487bb2131004098b049f59be66126f2e4d3e9",
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-28T11:45:58+00:00"
43
+        },
9 44
         {
10 45
             "name": "phpbenchmarks/symfony-common",
11 46
             "version": "4.1.1",

+ 0
- 28
init_benchmark.sh Vedi File

@@ -1,28 +0,0 @@
1
-#!/usr/bin/env bash
2
-
3
-function clearCacheAndLogs() {
4
-    sudo /bin/rm -rf var/cache/*
5
-    [ "$?" != "0" ] && exit 1
6
-    sudo /bin/chmod -R 777 var/cache
7
-    [ "$?" != "0" ] && exit 1
8
-
9
-    sudo /bin/rm -rf var/log/*
10
-    [ "$?" != "0" ] && exit 1
11
-    sudo /bin/chmod -R 777 var/log
12
-    [ "$?" != "0" ] && exit 1
13
-}
14
-
15
-function init() {
16
-    export APP_ENV='prod'
17
-
18
-    sudo /bin/rm -rf vendor/
19
-    clearCacheAndLogs
20
-
21
-    composer install --no-dev --classmap-authoritative
22
-    [ "$?" != "0" ] && exit 1
23
-
24
-    clearCacheAndLogs
25
-    php bin/console cache:warmup
26
-
27
-    return 0
28
-}

+ 3
- 0
symfony.lock Vedi File

@@ -11,6 +11,9 @@
11 11
     "doctrine/lexer": {
12 12
         "version": "v1.0.1"
13 13
     },
14
+    "phpbenchmarks/benchmark-kit": {
15
+        "version": "1.0.3"
16
+    },
14 17
     "phpbenchmarks/benchmark-rest-data": {
15 18
         "version": "1.0.0"
16 19
     },

Loading…
Annulla
Salva