浏览代码

Code validated by PHPBenchmarks kit 1.0.4

tags/4.2.2.1
Steevan BARBOYON 6 年前
父节点
当前提交
16e4311638
共有 9 个文件被更改,包括 151 次插入28 次删除
  1. 2
    2
      .phpbenchmarks/codeLink.sh
  2. 6
    6
      .phpbenchmarks/configuration.sh
  3. 2
    0
      .phpbenchmarks/initBenchmark.sh
  4. 16
    2
      README.md
  5. 14
    15
      composer.json
  6. 36
    1
      composer.lock.php7.1
  7. 36
    1
      composer.lock.php7.2
  8. 36
    1
      composer.lock.php7.3
  9. 3
    0
      symfony.lock

+ 2
- 2
.phpbenchmarks/codeLink.sh 查看文件

1
 #!/usr/bin/env bash
1
 #!/usr/bin/env bash
2
 
2
 
3
 declare -A codeLinks=(
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 查看文件

6
 readonly PHPBENCHMARKS_PHP_7_2_ENABLED=true
6
 readonly PHPBENCHMARKS_PHP_7_2_ENABLED=true
7
 readonly PHPBENCHMARKS_PHP_7_3_ENABLED=true
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
 readonly PHPBENCHMARKS_BENCHMARK_URL="/benchmark/helloworld"
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 查看文件

13
 }
13
 }
14
 
14
 
15
 function initBenchmark() {
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
     clearCacheAndLogs
18
     clearCacheAndLogs
17
 
19
 
18
     composer install --no-dev --classmap-authoritative
20
     composer install --no-dev --classmap-authoritative

+ 16
- 2
README.md 查看文件

4
   <a href="http://www.phpbenchmarks.com" target="_blank">www.phpbenchmarks.com</a>
4
   <a href="http://www.phpbenchmarks.com" target="_blank">www.phpbenchmarks.com</a>
5
 </p>
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 on [phpbenchmarks.com](http://www.phpbenchmarks.com).
9
 You will find lot of benchmarks for PHP frameworks and template engines on [phpbenchmarks.com](http://www.phpbenchmarks.com).
10
 
10
 
12
 
12
 
13
 Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).
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
 It contains Symfony installation `only`.
17
 It contains Symfony installation `only`.
18
 To reuse code between minor versions, features for benchmarks are not coded in this repository
18
 To reuse code between minor versions, features for benchmarks are not coded in this repository
30
 ## Community
30
 ## Community
31
 
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!
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 查看文件

10
         "symfony/flex": "^1.1",
10
         "symfony/flex": "^1.1",
11
         "symfony/framework-bundle": "4.2.2",
11
         "symfony/framework-bundle": "4.2.2",
12
         "symfony/yaml": "4.2.2",
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
     "config": {
27
     "config": {
16
         "preferred-install": {
28
         "preferred-install": {
32
         "symfony/polyfill-php56": "*"
44
         "symfony/polyfill-php56": "*"
33
     },
45
     },
34
     "conflict": {
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
     "extra": {
49
     "extra": {
51
         "symfony": {
50
         "symfony": {

+ 36
- 1
composer.lock.php7.1 查看文件

4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
         "This file is @generated automatically"
5
         "This file is @generated automatically"
6
     ],
6
     ],
7
-    "content-hash": "8803f5dab116915a28e759ec23ab3123",
7
+    "content-hash": "1ae5dd660efff1ae1e9528fb01b59cf9",
8
     "packages": [
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
             "name": "phpbenchmarks/symfony-common",
45
             "name": "phpbenchmarks/symfony-common",
11
             "version": "4.1.1",
46
             "version": "4.1.1",

+ 36
- 1
composer.lock.php7.2 查看文件

4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
         "This file is @generated automatically"
5
         "This file is @generated automatically"
6
     ],
6
     ],
7
-    "content-hash": "8803f5dab116915a28e759ec23ab3123",
7
+    "content-hash": "1ae5dd660efff1ae1e9528fb01b59cf9",
8
     "packages": [
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
             "name": "phpbenchmarks/symfony-common",
45
             "name": "phpbenchmarks/symfony-common",
11
             "version": "4.1.1",
46
             "version": "4.1.1",

+ 36
- 1
composer.lock.php7.3 查看文件

4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
         "This file is @generated automatically"
5
         "This file is @generated automatically"
6
     ],
6
     ],
7
-    "content-hash": "8803f5dab116915a28e759ec23ab3123",
7
+    "content-hash": "1ae5dd660efff1ae1e9528fb01b59cf9",
8
     "packages": [
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
             "name": "phpbenchmarks/symfony-common",
45
             "name": "phpbenchmarks/symfony-common",
11
             "version": "4.1.1",
46
             "version": "4.1.1",

+ 3
- 0
symfony.lock 查看文件

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

正在加载...
取消
保存