Skip to content

Commit

Permalink
Update for Kumbiaphp
Browse files Browse the repository at this point in the history
  • Loading branch information
myaaghubi committed Jul 21, 2023
1 parent acaefb3 commit 5dcb320
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 [email protected]
* Memory 16G

Expand All @@ -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|
Expand All @@ -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
Expand Down Expand Up @@ -123,7 +124,6 @@ $ bash check.sh
3- Run benchmarks:

```bash
# bash check.sh -t pure-php
$ bash benchmark.sh
```

Expand Down
2 changes: 1 addition & 1 deletion kumbiaphp-1.1/_benchmark/setup.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions output/.gitignore

This file was deleted.

Binary file modified screenshots/php-frameworks-bench-exectime.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/php-frameworks-bench-includedfiles.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/php-frameworks-bench-memory.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/php-frameworks-bench-throughput.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5dcb320

Please sign in to comment.