You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
configure:vhost Create .phpbenchmarks/vhost.conf, create phpXY.benchmark.loc vhosts and reload nginx
70
+
```
71
+
72
+
You can call `configure:all` to create all of them, or use the one your need.
73
+
74
+
Note the `phpbench composer:update` command. We need a `composer.lock` per PHP version,
75
+
because some dependencies are installed in different versions depending on the version of PHP.
76
+
Use `phpbench composer:update` to switch between PHP version, and create `composer.lock.phpX.Y`.
77
+
78
+
#4 Add required features for benchmarks
79
+
-
80
+
81
+
Choose the component type and benchmark type you want to code:
22
82
23
83
* Framework
24
84
*[Hello world benchmark](documentation/framework/helloWorld.md)
@@ -28,22 +88,24 @@ Choose your component type (framework or template engine) and benchmark type you
28
88
29
89
Note that `all` component benchmarks needs to bo validated to make your component appear on [phpbenchmarks.com](http://www.phpbenchmarks.com).
30
90
31
-
Code validation
91
+
#5 Test and validate your code
32
92
-
33
93
34
-
You can use [./codeValidation.sh](documentation/codeValidation.md) to validate your code, while you are in development or when you think it's finished.
35
-
36
-
Code links
37
-
-
94
+
Docker container provide a domain for each PHP version, from 5.6 to 7.3:
95
+
*http://php56.benchmark.loc
96
+
*http://php70.benchmark.loc
97
+
*http://php71.benchmark.loc
98
+
*http://php72.benchmark.loc
99
+
*http://php73.benchmark.loc
38
100
39
-
To show us all features are included, you need to indicate where each feature is coded.
101
+
You can use them to test your code.
40
102
41
-
[./codeLink.sh](documentation/codeLink.md) helps you to tell us.
103
+
When you think it's ok, use `phpbench benchmark:validate`to validate it.
42
104
43
-
Everything is done
105
+
#6 Submit your code
44
106
-
45
107
46
-
When [./codeValidation.sh](documentation/codeValidation.md) and [./codeLink.sh](documentation/codeLink.md) say it's good,
108
+
When `phpbench benchmark:validate` say it's good,
47
109
you can tell us to launch benchmarks with [contact form](http://www.phpbenchmarks.com/en/contact).
Copy file name to clipboardExpand all lines: documentation/framework/helloWorld.md
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Hello world benchmark
3
3
4
4
This benchmark shows the overhead cost of using a framework, instead of writing your code in PHP.
5
5
6
-
To respect that, code should write `Hello World !` in response body, as fast as possible.
6
+
To respect that, code should write `Hello World !`(yes, with space before `!`, cocorico ;)) in response body, as fast as possible.
7
7
8
8
Disable everything you can: template engine, session, database access etc.
9
9
@@ -16,9 +16,4 @@ Don't forget this features as to be coded in [common repository](../repositories
16
16
* A controller, called by this route. [Example](https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_hello-world/Controller/HelloWorldController.php).
17
17
* This controller should write `Hello World !` in response body as fast as possible. [Example](https://github.com/phpbenchmarks/symfony-common/blob/symfony_4_hello-world/Controller/HelloWorldController.php#L13).
18
18
19
-
Validate your code
20
-
-
21
-
22
-
When your code est terminated, you can validate it with [./codeValidation.sh](../codeValidation.md).
0 commit comments