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
@@ -71,29 +74,13 @@ These are my benchmarks, not yours. **I encourage you to run on your (production
71
74
72
75
73
76
#### OPCache On
77
+
Check out the video for more information.
74
78
[](http://www.youtube.com/watch?v=Dk8YHQZ6jfY)
75
79
76
80
77
-
## Benchmarking Policy
78
-
79
-
This is for the `main` branch.
80
-
81
-
* Frameworks installed via `composer` according to their official documentation.
82
-
* Used the default configuration.
83
-
* Considering the minimum changes on frameworks to run the benchmark.
84
-
* Didn't remove any components/configurations even if there is no use for them.
85
-
* We have a `controller` class to get the `Hello World` for each, based on the default template of each framework.
86
-
* Turned off the `debug` mode and set the environment to `production` mode.
87
-
* Considered general optimization for the production environment, like `--optimize-autoloader` for the composer.
88
-
89
-
Some frameworks are optimized more than others, so some people may think using default configuration is not fair. The dept of optimizing a framework depends on the experiences of the developer too, so it's the rabbit hole and there is no point in it. I think the default configuration of frameworks is a good starting point to get ranking.
90
-
91
-
If you find something wrong in my code, feel free to send a PR. But please note optimizing for the "Hello World" is not acceptable! Building the fastest `Hello World` application is not the goal of this project.
92
-
93
-
94
81
## How to Benchmark
95
82
96
-
If you want to have benchmarks on `PHP extension frameworks` like `Phalcon`, you need to install the extension first based on its own documentation.
83
+
If you want to have benchmarks on `PHP extension frameworks` like `Phalcon`, you need to install the extension first, based on its own documentation.
Check out the [Benchmarking Policy](#benchmarking-policy), to get more information watch the video [OPCache On/Off](#opcache-on).
185
+
186
+
187
+
## Benchmarking Policy
188
+
189
+
* Use `composer` to install frameworks according to their official documentation.
190
+
* Use the default configuration.
191
+
* Minimum changes on frameworks to have benchmarks.
192
+
* Don't remove any components/configurations even if there is no use for them.
193
+
* Include a `controller` class to get the `Hello World!` for each, based on the default template of each framework for `controllers`.
194
+
* Turn off the `debug` mode and set the environment to `production` mode.
195
+
* General optimization for the production environment, like `--optimize-autoloader` for the `composer`.
196
+
197
+
Some frameworks are optimized more than others, so some developers may think using default configuration is not fair. The dept of optimizing a framework depends on the skills/experiences of the developer too, so it's the rabbit hole and nonsense for ranking. Please **note** optimizing for the `Hello World` is not acceptable! Building the fastest `Hello World` application is not the goal of this project. I think the default configuration of frameworks is a good starting point to have a ranking.
198
+
199
+
If you find something wrong in my code, feel free to send a `PR`.
200
+
201
+
166
202
## 🍔 Donate
167
203
Don't forget to donate if you find it useful ☕ 🍺 🍸 🍔
[php-framework-benchmark](https://github.com/kenjis/php-framework-benchmark), thanks to [Kenjis](https://github.com/kenjis). It is very old and abandoned, so I decided to split it from the origin and update it separately.
0 commit comments