diff --git a/README.md b/README.md index 6dd57e3..0c0842e 100755 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Benchmarking on components like template engines or ORM/Database libraries is ou - [PHP Frameworks Bench](#php-frameworks-bench) - [Benchmarks](#benchmarks) - [Latest](#latest) - - [OPCache](#opcache) + - [OPCache On/Off](#opcache-on) - [Benchmarking Policy](#benchmarking-policy) - [How to Benchmark](#how-to-benchmark) - [Commands](#commands) @@ -34,7 +34,7 @@ Benchmarking on components like template engines or ORM/Database libraries is ou * PHP 8.2.5 * OPCache Off * Apache 2.4.52 - * WRK 4.2.0 + * WRK 4.2.0 (5 min) * CPU Core i7-3770K@4.4Ghz * Memory 16G @@ -51,6 +51,7 @@ These are my benchmarks, not yours. **I encourage you to run on your (production |framework |requests per second (rps)|relative (rps)|peak memory|relative (mem)| |-------------------|------------------------:|-------------:|----------:|-------------:| |pure-php | 27,379.94| 282.4| 0.42| 1.0| +|kumbiaphp-1.1 | 5,862.48| 60.5| 0.54| 1.3| |fastroute-1.3 | 4,591.01| 47.3| 0.56| 1.3| |phroute-2.2 | 4,303.07| 44.4| 0.58| 1.4| |leaf-3.3 | 1,576.68| 16.3| 1.10| 2.6| @@ -72,8 +73,8 @@ These are my benchmarks, not yours. **I encourage you to run on your (production |laravel-10.0 | 96.97| 1.0| 11.99| 28.5| -#### OPCache -[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/Dk8YHQZ6jfY/0.jpg)](http://www.youtube.com/watch?v=Dk8YHQZ6jfY) +#### OPCache On +[![Results with OPCache On/Off & How to add your framework](http://img.youtube.com/vi/Dk8YHQZ6jfY/0.jpg)](http://www.youtube.com/watch?v=Dk8YHQZ6jfY) ## Benchmarking Policy @@ -123,7 +124,6 @@ $ bash check.sh 3- Run benchmarks: ```bash -# bash check.sh -t pure-php $ bash benchmark.sh ``` diff --git a/kumbiaphp-1.1/_benchmark/setup.sh b/kumbiaphp-1.1/_benchmark/setup.sh index 68ca6ed..4000e6b 100755 --- a/kumbiaphp-1.1/_benchmark/setup.sh +++ b/kumbiaphp-1.1/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project --prefer-dist kumbia/framework ./_benchmark/temp +composer create-project --prefer-dist kumbia/framework:^1.1 ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/output/.gitignore b/output/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/output/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/screenshots/php-frameworks-bench-exectime.png b/screenshots/php-frameworks-bench-exectime.png old mode 100755 new mode 100644 index a4ea506..1f00878 Binary files a/screenshots/php-frameworks-bench-exectime.png and b/screenshots/php-frameworks-bench-exectime.png differ diff --git a/screenshots/php-frameworks-bench-includedfiles.png b/screenshots/php-frameworks-bench-includedfiles.png old mode 100755 new mode 100644 index 0c28ee6..85e7e17 Binary files a/screenshots/php-frameworks-bench-includedfiles.png and b/screenshots/php-frameworks-bench-includedfiles.png differ diff --git a/screenshots/php-frameworks-bench-memory.png b/screenshots/php-frameworks-bench-memory.png old mode 100755 new mode 100644 index a200cf1..404d55e Binary files a/screenshots/php-frameworks-bench-memory.png and b/screenshots/php-frameworks-bench-memory.png differ diff --git a/screenshots/php-frameworks-bench-throughput.png b/screenshots/php-frameworks-bench-throughput.png old mode 100755 new mode 100644 index f8d440c..23c10f0 Binary files a/screenshots/php-frameworks-bench-throughput.png and b/screenshots/php-frameworks-bench-throughput.png differ