Преглед изворни кода

Code validated by PHPBenchmarks kit 1.0.3

tags/4.1.9.1
Steevan BARBOYON пре 6 година
родитељ
комит
c7e07533a7

+ 6
- 0
.phpbenchmarks/codeLink.sh Прегледај датотеку

1
+#!/usr/bin/env bash
2
+
3
+declare -A codeLinks=(
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
+)

+ 18
- 0
.phpbenchmarks/configuration.sh Прегледај датотеку

1
+#!/usr/bin/env bash
2
+
3
+readonly PHPBENCHMARKS_PHP_5_6_ENABLED=false
4
+readonly PHPBENCHMARKS_PHP_7_0_ENABLED=false
5
+readonly PHPBENCHMARKS_PHP_7_1_ENABLED=true
6
+readonly PHPBENCHMARKS_PHP_7_2_ENABLED=true
7
+readonly PHPBENCHMARKS_PHP_7_3_ENABLED=true
8
+
9
+readonly PHPBENCHMARKS_COMPONENT_NAME="Symfony"
10
+readonly PHPBENCHMARKS_COMPONENT_SLUG="symfony"
11
+
12
+readonly PHPBENCHMARKS_BENCHMARK_URL="/benchmark/helloworld"
13
+
14
+readonly PHPBENCHMARKS_DEPENDENCY_NAME="symfony/framework-bundle"
15
+
16
+readonly PHPBENCHMARKS_DEPENDENCY_MAJOR_VERSION=4
17
+readonly PHPBENCHMARKS_DEPENDENCY_MINOR_VERSION=1
18
+readonly PHPBENCHMARKS_DEPENDENCY_BUGFIX_VERSION=9

+ 27
- 0
.phpbenchmarks/initBenchmark.sh Прегледај датотеку

1
+#!/usr/bin/env bash
2
+
3
+function clearCacheAndLogs() {
4
+    rm -rf var/cache/*
5
+    [ "$?" != "0" ] && exit 1
6
+    chmod -R 777 var/cache
7
+    [ "$?" != "0" ] && exit 1
8
+
9
+    rm -rf var/log/*
10
+    [ "$?" != "0" ] && exit 1
11
+    chmod -R 777 var/log
12
+    [ "$?" != "0" ] && exit 1
13
+}
14
+
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/
18
+    clearCacheAndLogs
19
+
20
+    composer install --no-dev --classmap-authoritative
21
+    [ "$?" != "0" ] && exit 1
22
+
23
+    clearCacheAndLogs
24
+    php bin/console cache:warmup
25
+
26
+    return 0
27
+}

+ 1
- 0
.phpbenchmarks/responseBody/responseBody.txt Прегледај датотеку

1
+Hello World !

+ 17
- 0
.phpbenchmarks/vhost.conf Прегледај датотеку

1
+server {
2
+    listen 80;
3
+    server_name ____HOST____;
4
+    root ____PROJECT_DIR____/public;
5
+    location / {
6
+        try_files $uri /index.php$is_args$args;
7
+    }
8
+    location ~ ^/(index).php(/|$) {
9
+        fastcgi_pass unix:/run/php/____PHP_FPM_SOCK____;
10
+        fastcgi_split_path_info ^(.+.php)(/.*)$;
11
+        include fastcgi_params;
12
+        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
13
+        fastcgi_param HTTPS off;
14
+    }
15
+    error_log /var/log/nginx/benchmark_error.log;
16
+    access_log /var/log/nginx/benchmark_access.log;
17
+}

+ 30
- 11
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.
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
 ## Benchmarks
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.

+ 17
- 19
composer.json Прегледај датотеку

1
 {
1
 {
2
     "name": "phpbenchmarks/symfony",
2
     "name": "phpbenchmarks/symfony",
3
+    "description": "Symfony benchmark code for PHPBenchmarks.",
3
     "license": "proprietary",
4
     "license": "proprietary",
4
     "type": "project",
5
     "type": "project",
5
     "require": {
6
     "require": {
6
         "php": "^7.1.3",
7
         "php": "^7.1.3",
7
         "ext-iconv": "*",
8
         "ext-iconv": "*",
8
-        "symfony/console": "4.1.*",
9
+        "symfony/console": "4.1.9",
9
         "symfony/flex": "^1.0",
10
         "symfony/flex": "^1.0",
10
-        "symfony/framework-bundle": "4.1.*",
11
-        "symfony/yaml": "4.1.*",
12
-        "phpbenchmarks/symfony-common": "4.1.1"
11
+        "symfony/framework-bundle": "4.1.9",
12
+        "symfony/yaml": "4.1.9",
13
+        "symfony/routing": "4.1.9",
14
+        "symfony/http-foundation": "4.1.9",
15
+        "symfony/event-dispatcher": "4.1.9",
16
+        "symfony/debug": "4.1.9",
17
+        "symfony/http-kernel": "4.1.9",
18
+        "symfony/finder": "4.1.9",
19
+        "symfony/filesystem": "4.1.9",
20
+        "symfony/dependency-injection": "4.1.9",
21
+        "symfony/config": "4.1.9",
22
+        "symfony/cache": "4.1.9",
23
+        "phpbenchmarks/symfony-common": "4.1.1",
24
+        "phpbenchmarks/benchmark-kit": "~1.0.3"
13
     },
25
     },
14
-    "minimum-stability": "beta",
15
     "config": {
26
     "config": {
16
         "preferred-install": {
27
         "preferred-install": {
17
             "*": "dist"
28
             "*": "dist"
30
         "symfony/polyfill-php56": "*"
41
         "symfony/polyfill-php56": "*"
31
     },
42
     },
32
     "conflict": {
43
     "conflict": {
33
-        "symfony/symfony": "*",
34
-        "https://github.com/composer/composer/issues/7827": "0.0.0",
35
-        "https://github.com/symfony/symfony/issues/29581": "0.0.0",
36
-        "symfony/routing": ">=4.2.0",
37
-        "symfony/http-foundation": ">=4.2.0",
38
-        "symfony/event-dispatcher":  ">=4.2.0",
39
-        "symfony/debug": ">=4.2.0",
40
-        "symfony/http-kernel":  ">=4.2.0",
41
-        "symfony/finder": ">=4.2.0",
42
-        "symfony/filesystem":  ">=4.2.0",
43
-        "symfony/dependency-injection": ">=4.2.0",
44
-        "symfony/config":  ">=4.2.0",
45
-        "symfony/var-exporter": ">=4.2.0",
46
-        "symfony/cach":  ">=4.2.0"
44
+        "symfony/symfony": "*"
47
     },
45
     },
48
     "extra": {
46
     "extra": {
49
         "symfony": {
47
         "symfony": {

+ 38
- 3
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": "f1dc66cb15359ad8ec24078670174f92",
7
+    "content-hash": "941b53aea2932181fa8253c5f3d04e4c",
8
     "packages": [
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
             "name": "phpbenchmarks/symfony-common",
45
             "name": "phpbenchmarks/symfony-common",
11
             "version": "4.1.1",
46
             "version": "4.1.1",
1061
                 },
1096
                 },
1062
                 {
1097
                 {
1063
                     "name": "Gert de Pagter",
1098
                     "name": "Gert de Pagter",
1064
-                    "email": "BackEndTea@gmail.com"
1099
+                    "email": "backendtea@gmail.com"
1065
                 }
1100
                 }
1066
             ],
1101
             ],
1067
             "description": "Symfony polyfill for ctype functions",
1102
             "description": "Symfony polyfill for ctype functions",
1272
     ],
1307
     ],
1273
     "packages-dev": [],
1308
     "packages-dev": [],
1274
     "aliases": [],
1309
     "aliases": [],
1275
-    "minimum-stability": "beta",
1310
+    "minimum-stability": "stable",
1276
     "stability-flags": [],
1311
     "stability-flags": [],
1277
     "prefer-stable": false,
1312
     "prefer-stable": false,
1278
     "prefer-lowest": false,
1313
     "prefer-lowest": false,

+ 38
- 3
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": "f1dc66cb15359ad8ec24078670174f92",
7
+    "content-hash": "941b53aea2932181fa8253c5f3d04e4c",
8
     "packages": [
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
             "name": "phpbenchmarks/symfony-common",
45
             "name": "phpbenchmarks/symfony-common",
11
             "version": "4.1.1",
46
             "version": "4.1.1",
1061
                 },
1096
                 },
1062
                 {
1097
                 {
1063
                     "name": "Gert de Pagter",
1098
                     "name": "Gert de Pagter",
1064
-                    "email": "BackEndTea@gmail.com"
1099
+                    "email": "backendtea@gmail.com"
1065
                 }
1100
                 }
1066
             ],
1101
             ],
1067
             "description": "Symfony polyfill for ctype functions",
1102
             "description": "Symfony polyfill for ctype functions",
1272
     ],
1307
     ],
1273
     "packages-dev": [],
1308
     "packages-dev": [],
1274
     "aliases": [],
1309
     "aliases": [],
1275
-    "minimum-stability": "beta",
1310
+    "minimum-stability": "stable",
1276
     "stability-flags": [],
1311
     "stability-flags": [],
1277
     "prefer-stable": false,
1312
     "prefer-stable": false,
1278
     "prefer-lowest": false,
1313
     "prefer-lowest": false,

+ 38
- 3
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": "f1dc66cb15359ad8ec24078670174f92",
7
+    "content-hash": "941b53aea2932181fa8253c5f3d04e4c",
8
     "packages": [
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
             "name": "phpbenchmarks/symfony-common",
45
             "name": "phpbenchmarks/symfony-common",
11
             "version": "4.1.1",
46
             "version": "4.1.1",
1061
                 },
1096
                 },
1062
                 {
1097
                 {
1063
                     "name": "Gert de Pagter",
1098
                     "name": "Gert de Pagter",
1064
-                    "email": "BackEndTea@gmail.com"
1099
+                    "email": "backendtea@gmail.com"
1065
                 }
1100
                 }
1066
             ],
1101
             ],
1067
             "description": "Symfony polyfill for ctype functions",
1102
             "description": "Symfony polyfill for ctype functions",
1272
     ],
1307
     ],
1273
     "packages-dev": [],
1308
     "packages-dev": [],
1274
     "aliases": [],
1309
     "aliases": [],
1275
-    "minimum-stability": "beta",
1310
+    "minimum-stability": "stable",
1276
     "stability-flags": [],
1311
     "stability-flags": [],
1277
     "prefer-stable": false,
1312
     "prefer-stable": false,
1278
     "prefer-lowest": false,
1313
     "prefer-lowest": false,

+ 3
- 0
symfony.lock Прегледај датотеку

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

Loading…
Откажи
Сачувај