Skip to content

Commit ff13aa3

Browse files
authored
Merge pull request #73 from myaaghubi/v2.5
v2.5
2 parents 3358a16 + 230b616 commit ff13aa3

File tree

114 files changed

+323
-832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+323
-832
lines changed

.docker/apache.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.3-apache
1+
FROM php:8.4-apache
22

33
RUN apt-get update \
44
&& apt-get install -y libicu-dev

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ on: [ push, pull_request ]
44
jobs:
55
setup:
66
name: Check PHP frameworks
7-
runs-on: ubuntu-22.04
7+
runs-on: ubuntu-24.04
88

99
steps:
1010

11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- name: Install WRK
1414
run: sudo apt-get install wrk w3m
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 8.3
19+
php-version: 8.4
2020
extensions: dom, curl, libxml, mbstring, zip, pcntl, ctype, iconv, intl
2121
coverage: none
2222

2323
- name: Install Apache mod_php
2424
run: |
2525
LC_ALL=C.UTF-8 sudo apt-add-repository http://ppa.launchpad.net/ondrej/php/ubuntu
26-
sudo apt install libapache2-mod-php8.3
27-
sudo a2enmod php8.3 rewrite
26+
sudo apt install libapache2-mod-php8.4
27+
sudo a2enmod php8.4 rewrite
2828
shell: bash
2929

3030
- name: Setup frameworks
@@ -41,4 +41,4 @@ jobs:
4141

4242
- name: Check frameworks
4343
run: bash check.sh
44-
44+

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,20 @@ Benchmarking on components like template engines or ORM/Database libraries is ou
3333

3434
#### Environment
3535

36-
For `PHP 8.2` check out [this link](https://github.com/myaaghubi/PHP-Frameworks-Bench/tree/v2.3.1).
36+
For `PHP 8.3` check out [this link](https://github.com/myaaghubi/PHP-Frameworks-Bench/tree/92cce05b3f6cf0aa33a06c3f13d8dd0c706f3b6c).
3737

38-
* Ubuntu 22.04 LTS x86_64
39-
* PHP 8.3.0
38+
For `PHP 8.2` check out [this link](https://github.com/myaaghubi/PHP-Frameworks-Bench/tree/163d2c0eb7862cf3c14479913435cb90ec7d6f0b).
39+
40+
* Ubuntu 24.04 LTS x86_64
41+
* PHP 8.4.3
4042
* OPCache Off
41-
* Apache 2.4.52
43+
* Apache 2.4.58
4244
* WRK 4.2.0 (5 min)
4345
* CPU Core i7-3770K/4.4Ghz
4446
* Memory 16G
4547

4648

47-
#### Results (2023/12/1)
49+
#### Results (2025/2/7)
4850

4951
These are my benchmarks, not yours. **I encourage you to run on your -production equivalent- environments.**
5052

@@ -55,25 +57,23 @@ These are my benchmarks, not yours. **I encourage you to run on your -production
5557

5658
|framework |requests per second (rps)|relative (rps)|peak memory|relative (mem)|
5759
|-------------------|------------------------:|-------------:|----------:|-------------:|
58-
|pure-php | 27,077.31| 321.6| 0.42| 1.0|
59-
|kumbia-1.1 | 5,921.29| 70.3| 0.54| 1.3|
60-
|fastroute-1.3 | 4,516.12| 53.6| 0.56| 1.3|
61-
|phroute-2.2 | 4,198.83| 49.9| 0.58| 1.4|
62-
|leaf-3.5 | 1,487.36| 17.7| 1.11| 2.6|
63-
|fatfree-3.8 | 1,453.82| 17.3| 1.72| 4.1|
64-
|slim-4.12 | 798.17| 9.5| 1.57| 3.7|
65-
|ubiquity-2.4.x.dev | 705.12| 8.4| 1.64| 3.9|
66-
|silex-2.3 | 543.66| 6.5| 2.20| 5.2|
67-
|yii-2.0-basic | 503.76| 6.0| 2.56| 6.1|
68-
|fuelphp-1.9 | 429.18| 5.1| 2.61| 6.2|
69-
|lumen-10.0 | 325.27| 3.9| 3.61| 8.6|
70-
|symfony-5.4 | 309.74| 3.7| 3.77| 9.0|
71-
|codeigniter-4.4 | 302.21| 3.6| 3.62| 8.6|
72-
|symfony-7.0 | 286.46| 3.4| 4.07| 9.7|
73-
|symfony-6.4 | 280.83| 3.3| 4.11| 9.8|
74-
|cakephp-4.5 | 246.72| 2.9| 4.63| 11.0|
75-
|cakephp-5.0 | 243.96| 2.9| 4.74| 11.3|
76-
|laravel-10.2 | 84.19| 1.0| 13.06| 31.0|
60+
|pure-php | 25,833.28| 409.4| 0.42| 1.0|
61+
|kumbia-1.2 | 5,681.12| 90.0| 0.54| 1.3|
62+
|fastroute-1.3 | 4,262.94| 67.6| 0.56| 1.3|
63+
|phroute-2.2 | 3,949.48| 62.6| 0.58| 1.4|
64+
|fatfree-3.9 | 1,364.24| 21.6| 1.72| 4.1|
65+
|leaf-3.11 | 1,298.60| 20.6| 1.18| 2.8|
66+
|slim-4.14 | 741.19| 11.7| 1.59| 3.8|
67+
|yii-2.0-basic | 527.72| 8.4| 2.60| 6.2|
68+
|silex-2.3 | 512.44| 8.1| 2.28| 5.4|
69+
|lumen-10.0 | 301.01| 4.8| 3.78| 9.0|
70+
|symfony-5.4 | 281.95| 4.5| 3.84| 9.1|
71+
|codeigniter-4.6 | 274.93| 4.4| 3.93| 9.4|
72+
|symfony-7.0 | 261.52| 4.1| 4.20| 10.0|
73+
|symfony-6.4 | 254.35| 4.0| 4.26| 10.1|
74+
|cakephp-5.1 | 222.48| 3.5| 4.96| 11.8|
75+
|laravel-10.3 | 76.35| 1.2| 13.82| 32.9|
76+
|laravel-11.0 | 63.10| 1.0| 16.19| 38.5|
7777

7878

7979
#### OPCache On
@@ -246,4 +246,4 @@ Note: This project is based on
246246

247247
You are allowed to use this plugin/project under the terms of the GNU General Public License version 2.
248248

249-
Copyright (C) 2024 [Mohammad Yaaghubi](https://github.com/myaaghubi)
249+
Copyright (C) 2025 [Mohammad Yaaghubi](https://github.com/myaaghubi)

base/hello_world.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ phpc=`curl -s "$base/libs/php_config.php"`
2222
echo "/------- PHP Config -------/"
2323
echo "$phpc"
2424

25+
# Colors
26+
GREEN='\033[0;32m'
27+
RED='\033[0;31m'
28+
NC='\033[0m' # No Color
29+
2530
for fw in `echo $param_targets`
2631
do
32+
echo "\n/------- $fw -------/"
2733
if [ -d "$fw" ]; then
28-
echo "\n/------- $fw -------/"
2934

3035
# read -p "Continue to $fw (y/n)?" choice
3136
# case "$choice" in
@@ -75,6 +80,10 @@ do
7580

7681
# run the benchmark
7782
benchmark "$fw" "$url"
83+
else
84+
# check for dir
85+
echo "${RED}Dir $fw/ doesn't exist!${NC}"
86+
FAIL=1
7887
fi
7988
done
8089

cakephp-4.5/_benchmark/cakephp/config/app_local.php

Lines changed: 0 additions & 95 deletions
This file was deleted.

cakephp-4.5/_benchmark/cakephp/config/routes.php

Lines changed: 0 additions & 94 deletions
This file was deleted.

cakephp-4.5/_benchmark/cakephp/src/Controller/HelloWorldController.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)