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
Copy file name to clipboardExpand all lines: README.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
# PHP Frameworks Bench
2
-

2
+

3
3
4
4
This project attempts to measure the minimum overhead (minimum bootstrap cost) of PHP frameworks in the real world.
5
5
6
6
So I think the minimum should not include:
7
7
8
-
* cost of template engine (HTML output)
8
+
* cost of template engine
9
9
* cost of database manipulation
10
10
* cost of debugging information
11
11
12
-
Components like Template engines or ORM/Database libraries are out of scope in this project.
12
+
Benchmarking on components like template engines or ORM/Database libraries is out of the scope of this project.
13
13
14
14
15
15
-[PHP Frameworks Bench](#php-frameworks-bench)
@@ -75,26 +75,26 @@ This is `master` branch.
75
75
76
76
* Install a framework via `composer` according to the official documentation.
77
77
* Use the default configuration.
78
-
* Don't remove any components/configurations even if they are not used.
79
-
* With minimum changes to run this benchmark.
80
-
* Set environment production/Turn off debug mode.
78
+
* Consider minimum changes to run the benchmark.
79
+
* Don't remove any components/configurations even if there be no use for them.
80
+
* Have a `controller` class for the `Hello World`, considering the default template of a controller of your framework.
81
+
* Turn off `debug` mode and set environment to `production` mode.
81
82
* Run the general optimization in your production environment, like `--optimize-autoloader` for the composer.
82
-
* Use controller class.
83
83
84
-
Some frameworks are optimized, some are not, so some people may think using default configuration is not fair. The dept of optimizing a framework depends on the developer's experienced too, so it's the rabbit hole and there is no point in that for benchmarking. I think the default configuration of frameworks is a good starting point to have the ranking points.
84
+
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 developer's experience 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.
85
85
86
-
If you find something wrong with my code, feel free to send 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.
86
+
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.
87
87
88
88
89
89
## How to Benchmark
90
90
91
-
If you want to benchmark PHP extension frameworks like Phalcon, you need to install the extenstions.
91
+
If you want to have benchmarks on `PHP extension frameworks` like Phalcon, you need to install the extension first based on its own documentation.
92
92
93
-
1- Download & install the library in your localhost:
93
+
1- Download & install the library into your localhost:
[php-framework-benchmark](https://github.com/kenjis/php-framework-benchmark). It was very old and abandoned, so I decided to split it from the origin and update it separately.
152
+
[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