From 33e6e6261d04ac5994412875611fd092db19dd84 Mon Sep 17 00:00:00 2001 From: Mohammad Yaaghubi Date: Wed, 17 May 2023 18:41:46 +0330 Subject: [PATCH] Frameworks updated Frameworks updated, checkout `benchmark.config` A bit changes --- benchmark.config | 20 +++--- .../_benchmark/cakephp/config/app_local.php | 0 .../_benchmark/cakephp/config/routes.php | 0 .../src/Controller/HelloWorldController.php | 0 .../_benchmark/cakephp/webroot/index.php | 0 .../_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 .../_benchmark/setup.sh | 2 +- .../_benchmark/update.sh | 0 .../_benchmark/codeigniter/public/index.php | 41 ----------- .../_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../codeigniter/app/Config/Routes.php | 0 .../app/Controllers/HelloWorldController.php | 0 .../_benchmark/codeigniter/public/index.php | 71 +++++++++++++++++++ .../_benchmark/hello_world.sh | 0 .../_benchmark/setup.sh | 2 +- .../_benchmark/update.sh | 0 fastroute-1.3/composer.json | 2 +- .../Controllers/HelloWorldController.php | 0 .../_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 .../_benchmark/setup.sh | 0 .../_benchmark/update.sh | 0 .../composer.json | 2 +- {fatfree-3.8.0 => fatfree-3.8.1}/index.php | 0 fuelphp-1.9/_benchmark/setup.sh | 2 +- index.php | 9 +-- .../_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 .../Application/config/module.config.php | 0 .../src/Controller/HelloWorldController.php | 0 .../_benchmark/laminas/public/index.php | 0 .../_benchmark/setup.sh | 2 +- .../_benchmark/update.sh | 0 .../_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 .../Http/Controllers/HelloWorldController.php | 0 .../_benchmark/laravel/public/index.php | 0 .../_benchmark/laravel/routes/web.php | 0 .../_benchmark/setup.sh | 2 +- .../_benchmark/update.sh | 0 .../Controllers/HelloWorldController.php | 0 {leaf-3.0 => leaf-3.3}/_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 {leaf-3.0 => leaf-3.3}/_benchmark/setup.sh | 0 {leaf-3.0 => leaf-3.3}/_benchmark/update.sh | 0 {leaf-3.0 => leaf-3.3}/composer.json | 2 +- {leaf-3.0 => leaf-3.3}/index.php | 0 {lumen-9.0 => lumen-10.0}/_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 .../Http/Controllers/HelloWorldController.php | 0 .../_benchmark/lumen/public/index.php | 0 .../_benchmark/lumen/routes/web.php | 0 {lumen-9.0 => lumen-10.0}/_benchmark/setup.sh | 2 +- .../_benchmark/update.sh | 0 phroute-2.2/composer.json | 2 +- silex-2.3/composer.json | 2 +- slim-3.12/composer.json | 2 +- .../Controllers/HelloWorldController.php | 0 {slim-4.10 => slim-4.11}/_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 {slim-4.10 => slim-4.11}/_benchmark/setup.sh | 0 {slim-4.10 => slim-4.11}/_benchmark/update.sh | 0 {slim-4.10 => slim-4.11}/composer.json | 2 +- {slim-4.10 => slim-4.11}/index.php | 2 +- symfony-5.4/_benchmark/setup.sh | 2 +- .../_benchmark/clean.sh | 0 .../_benchmark/clear-cache.sh | 0 .../_benchmark/hello_world.sh | 0 .../_benchmark/setup.sh | 2 +- .../_benchmark/symfony/config/routes.yaml | 0 .../_benchmark/symfony/public/index.php | 0 .../src/Controller/HelloWorldController.php | 0 .../_benchmark/update.sh | 0 .../_benchmark/ubiquity/app/config/config.php | 4 +- yii-2.0-basic/_benchmark/setup.sh | 9 +-- 84 files changed, 109 insertions(+), 77 deletions(-) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/cakephp/config/app_local.php (100%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/cakephp/config/routes.php (100%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/cakephp/src/Controller/HelloWorldController.php (100%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/cakephp/webroot/index.php (100%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/clean.sh (100%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/clear-cache.sh (100%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/hello_world.sh (100%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/setup.sh (78%) rename {cakephp-4.3 => cakephp-4.4}/_benchmark/update.sh (100%) delete mode 100755 codeigniter-4.1/_benchmark/codeigniter/public/index.php rename {codeigniter-4.1 => codeigniter-4.3}/_benchmark/clean.sh (100%) rename {codeigniter-4.1 => codeigniter-4.3}/_benchmark/clear-cache.sh (100%) rename {codeigniter-4.1 => codeigniter-4.3}/_benchmark/codeigniter/app/Config/Routes.php (100%) rename {codeigniter-4.1 => codeigniter-4.3}/_benchmark/codeigniter/app/Controllers/HelloWorldController.php (100%) create mode 100755 codeigniter-4.3/_benchmark/codeigniter/public/index.php rename {codeigniter-4.1 => codeigniter-4.3}/_benchmark/hello_world.sh (100%) rename {codeigniter-4.1 => codeigniter-4.3}/_benchmark/setup.sh (75%) rename {codeigniter-4.1 => codeigniter-4.3}/_benchmark/update.sh (100%) rename {fatfree-3.8.0 => fatfree-3.8.1}/Controllers/HelloWorldController.php (100%) rename {fatfree-3.8.0 => fatfree-3.8.1}/_benchmark/clean.sh (100%) rename {fatfree-3.8.0 => fatfree-3.8.1}/_benchmark/clear-cache.sh (100%) rename {fatfree-3.8.0 => fatfree-3.8.1}/_benchmark/hello_world.sh (100%) rename {fatfree-3.8.0 => fatfree-3.8.1}/_benchmark/setup.sh (100%) rename {fatfree-3.8.0 => fatfree-3.8.1}/_benchmark/update.sh (100%) rename {fatfree-3.8.0 => fatfree-3.8.1}/composer.json (75%) rename {fatfree-3.8.0 => fatfree-3.8.1}/index.php (100%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/clean.sh (100%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/clear-cache.sh (100%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/hello_world.sh (100%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/laminas/module/Application/config/module.config.php (100%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/laminas/module/Application/src/Controller/HelloWorldController.php (100%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/laminas/public/index.php (100%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/setup.sh (74%) rename {laminas-2.0.x.dev => laminas-2.0}/_benchmark/update.sh (100%) rename {laravel-9.1 => laravel-10.0}/_benchmark/clean.sh (100%) rename {laravel-9.1 => laravel-10.0}/_benchmark/clear-cache.sh (100%) rename {laravel-9.1 => laravel-10.0}/_benchmark/hello_world.sh (100%) rename {laravel-9.1 => laravel-10.0}/_benchmark/laravel/app/Http/Controllers/HelloWorldController.php (100%) rename {laravel-9.1 => laravel-10.0}/_benchmark/laravel/public/index.php (100%) rename {laravel-9.1 => laravel-10.0}/_benchmark/laravel/routes/web.php (100%) rename {laravel-9.1 => laravel-10.0}/_benchmark/setup.sh (80%) rename {laravel-9.1 => laravel-10.0}/_benchmark/update.sh (100%) rename {leaf-3.0 => leaf-3.3}/Controllers/HelloWorldController.php (100%) rename {leaf-3.0 => leaf-3.3}/_benchmark/clean.sh (100%) rename {leaf-3.0 => leaf-3.3}/_benchmark/clear-cache.sh (100%) rename {leaf-3.0 => leaf-3.3}/_benchmark/hello_world.sh (100%) rename {leaf-3.0 => leaf-3.3}/_benchmark/setup.sh (100%) rename {leaf-3.0 => leaf-3.3}/_benchmark/update.sh (100%) rename {leaf-3.0 => leaf-3.3}/composer.json (81%) rename {leaf-3.0 => leaf-3.3}/index.php (100%) rename {lumen-9.0 => lumen-10.0}/_benchmark/clean.sh (100%) rename {lumen-9.0 => lumen-10.0}/_benchmark/clear-cache.sh (100%) rename {lumen-9.0 => lumen-10.0}/_benchmark/hello_world.sh (100%) rename {lumen-9.0 => lumen-10.0}/_benchmark/lumen/app/Http/Controllers/HelloWorldController.php (100%) rename {lumen-9.0 => lumen-10.0}/_benchmark/lumen/public/index.php (100%) rename {lumen-9.0 => lumen-10.0}/_benchmark/lumen/routes/web.php (100%) rename {lumen-9.0 => lumen-10.0}/_benchmark/setup.sh (77%) rename {lumen-9.0 => lumen-10.0}/_benchmark/update.sh (100%) rename {slim-4.10 => slim-4.11}/Controllers/HelloWorldController.php (100%) rename {slim-4.10 => slim-4.11}/_benchmark/clean.sh (100%) rename {slim-4.10 => slim-4.11}/_benchmark/clear-cache.sh (100%) rename {slim-4.10 => slim-4.11}/_benchmark/hello_world.sh (100%) rename {slim-4.10 => slim-4.11}/_benchmark/setup.sh (100%) rename {slim-4.10 => slim-4.11}/_benchmark/update.sh (100%) rename {slim-4.10 => slim-4.11}/composer.json (85%) rename {slim-4.10 => slim-4.11}/index.php (87%) rename {symfony-6.0 => symfony-6.2}/_benchmark/clean.sh (100%) rename {symfony-6.0 => symfony-6.2}/_benchmark/clear-cache.sh (100%) rename {symfony-6.0 => symfony-6.2}/_benchmark/hello_world.sh (100%) rename {symfony-6.0 => symfony-6.2}/_benchmark/setup.sh (81%) rename {symfony-6.0 => symfony-6.2}/_benchmark/symfony/config/routes.yaml (100%) rename {symfony-6.0 => symfony-6.2}/_benchmark/symfony/public/index.php (100%) rename {symfony-6.0 => symfony-6.2}/_benchmark/symfony/src/Controller/HelloWorldController.php (100%) rename {symfony-6.0 => symfony-6.2}/_benchmark/update.sh (100%) diff --git a/benchmark.config b/benchmark.config index 7de1e25..8e14d4f 100644 --- a/benchmark.config +++ b/benchmark.config @@ -2,7 +2,7 @@ base="http://127.0.0.1/PHP-Frameworks-Bench" # 30-3000 -# higher duration is better to get more reliable results +# a higher duration provides more reliable results duration=60 # for a high-end host you may need to put @@ -16,24 +16,24 @@ connections=500 # Frameworks list # Sorted alphabetically frameworks_list=" -cakephp-4.3 -codeigniter-4.1 +cakephp-4.4 +codeigniter-4.3 fastroute-1.3 -fatfree-3.8.0 +fatfree-3.8.1 frameworkx-dev fuelphp-1.9 -laminas-2.0.x.dev -laravel-9.1 -leaf-3.0 -lumen-9.0 +laminas-2.0 +laravel-10.0 +leaf-3.3 +lumen-10.0 phroute-2.2 pure-php siler-1.7.9 silex-2.3 slim-3.12 -slim-4.10 +slim-4.11 symfony-5.4 -symfony-6.0 +symfony-6.2 ubiquity-2.4.x.dev yii-2.0-basic " \ No newline at end of file diff --git a/cakephp-4.3/_benchmark/cakephp/config/app_local.php b/cakephp-4.4/_benchmark/cakephp/config/app_local.php similarity index 100% rename from cakephp-4.3/_benchmark/cakephp/config/app_local.php rename to cakephp-4.4/_benchmark/cakephp/config/app_local.php diff --git a/cakephp-4.3/_benchmark/cakephp/config/routes.php b/cakephp-4.4/_benchmark/cakephp/config/routes.php similarity index 100% rename from cakephp-4.3/_benchmark/cakephp/config/routes.php rename to cakephp-4.4/_benchmark/cakephp/config/routes.php diff --git a/cakephp-4.3/_benchmark/cakephp/src/Controller/HelloWorldController.php b/cakephp-4.4/_benchmark/cakephp/src/Controller/HelloWorldController.php similarity index 100% rename from cakephp-4.3/_benchmark/cakephp/src/Controller/HelloWorldController.php rename to cakephp-4.4/_benchmark/cakephp/src/Controller/HelloWorldController.php diff --git a/cakephp-4.3/_benchmark/cakephp/webroot/index.php b/cakephp-4.4/_benchmark/cakephp/webroot/index.php similarity index 100% rename from cakephp-4.3/_benchmark/cakephp/webroot/index.php rename to cakephp-4.4/_benchmark/cakephp/webroot/index.php diff --git a/cakephp-4.3/_benchmark/clean.sh b/cakephp-4.4/_benchmark/clean.sh similarity index 100% rename from cakephp-4.3/_benchmark/clean.sh rename to cakephp-4.4/_benchmark/clean.sh diff --git a/cakephp-4.3/_benchmark/clear-cache.sh b/cakephp-4.4/_benchmark/clear-cache.sh similarity index 100% rename from cakephp-4.3/_benchmark/clear-cache.sh rename to cakephp-4.4/_benchmark/clear-cache.sh diff --git a/cakephp-4.3/_benchmark/hello_world.sh b/cakephp-4.4/_benchmark/hello_world.sh similarity index 100% rename from cakephp-4.3/_benchmark/hello_world.sh rename to cakephp-4.4/_benchmark/hello_world.sh diff --git a/cakephp-4.3/_benchmark/setup.sh b/cakephp-4.4/_benchmark/setup.sh similarity index 78% rename from cakephp-4.3/_benchmark/setup.sh rename to cakephp-4.4/_benchmark/setup.sh index 8a62d87..b1f3854 100755 --- a/cakephp-4.3/_benchmark/setup.sh +++ b/cakephp-4.4/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project --prefer-dist cakephp/app:4.3 ./_benchmark/temp +composer create-project --prefer-dist cakephp/app:^4.4 ./_benchmark/temp yes|mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/cakephp-4.3/_benchmark/update.sh b/cakephp-4.4/_benchmark/update.sh similarity index 100% rename from cakephp-4.3/_benchmark/update.sh rename to cakephp-4.4/_benchmark/update.sh diff --git a/codeigniter-4.1/_benchmark/codeigniter/public/index.php b/codeigniter-4.1/_benchmark/codeigniter/public/index.php deleted file mode 100755 index b1277ec..0000000 --- a/codeigniter-4.1/_benchmark/codeigniter/public/index.php +++ /dev/null @@ -1,41 +0,0 @@ -systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php'; -$app = require realpath($bootstrap) ?: $bootstrap; - -/* - *--------------------------------------------------------------- - * LAUNCH THE APPLICATION - *--------------------------------------------------------------- - * Now that everything is setup, it's time to actually fire - * up the engines and make this app do its thang. - */ -$app->run(); - - -/* *** PHP-Frameworks-Bench *** */ -require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php'; \ No newline at end of file diff --git a/codeigniter-4.1/_benchmark/clean.sh b/codeigniter-4.3/_benchmark/clean.sh similarity index 100% rename from codeigniter-4.1/_benchmark/clean.sh rename to codeigniter-4.3/_benchmark/clean.sh diff --git a/codeigniter-4.1/_benchmark/clear-cache.sh b/codeigniter-4.3/_benchmark/clear-cache.sh similarity index 100% rename from codeigniter-4.1/_benchmark/clear-cache.sh rename to codeigniter-4.3/_benchmark/clear-cache.sh diff --git a/codeigniter-4.1/_benchmark/codeigniter/app/Config/Routes.php b/codeigniter-4.3/_benchmark/codeigniter/app/Config/Routes.php similarity index 100% rename from codeigniter-4.1/_benchmark/codeigniter/app/Config/Routes.php rename to codeigniter-4.3/_benchmark/codeigniter/app/Config/Routes.php diff --git a/codeigniter-4.1/_benchmark/codeigniter/app/Controllers/HelloWorldController.php b/codeigniter-4.3/_benchmark/codeigniter/app/Controllers/HelloWorldController.php similarity index 100% rename from codeigniter-4.1/_benchmark/codeigniter/app/Controllers/HelloWorldController.php rename to codeigniter-4.3/_benchmark/codeigniter/app/Controllers/HelloWorldController.php diff --git a/codeigniter-4.3/_benchmark/codeigniter/public/index.php b/codeigniter-4.3/_benchmark/codeigniter/public/index.php new file mode 100755 index 0000000..07b9869 --- /dev/null +++ b/codeigniter-4.3/_benchmark/codeigniter/public/index.php @@ -0,0 +1,71 @@ +systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php'; + +// Load environment settings from .env files into $_SERVER and $_ENV +require_once SYSTEMPATH . 'Config/DotEnv.php'; +(new CodeIgniter\Config\DotEnv(ROOTPATH))->load(); + +/* + * --------------------------------------------------------------- + * GRAB OUR CODEIGNITER INSTANCE + * --------------------------------------------------------------- + * + * The CodeIgniter class contains the core functionality to make + * the application run, and does all of the dirty work to get + * the pieces all working together. + */ + +$app = Config\Services::codeigniter(); +$app->initialize(); +$context = is_cli() ? 'php-cli' : 'web'; +$app->setContext($context); + +/* + *--------------------------------------------------------------- + * LAUNCH THE APPLICATION + *--------------------------------------------------------------- + * Now that everything is setup, it's time to actually fire + * up the engines and make this app do its thang. + */ + +$app->run(); + + +/* *** PHP-Frameworks-Bench *** */ +require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php'; \ No newline at end of file diff --git a/codeigniter-4.1/_benchmark/hello_world.sh b/codeigniter-4.3/_benchmark/hello_world.sh similarity index 100% rename from codeigniter-4.1/_benchmark/hello_world.sh rename to codeigniter-4.3/_benchmark/hello_world.sh diff --git a/codeigniter-4.1/_benchmark/setup.sh b/codeigniter-4.3/_benchmark/setup.sh similarity index 75% rename from codeigniter-4.1/_benchmark/setup.sh rename to codeigniter-4.3/_benchmark/setup.sh index ea9ea35..db2499f 100755 --- a/codeigniter-4.1/_benchmark/setup.sh +++ b/codeigniter-4.3/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project codeigniter4/appstarter:4.1 --no-dev ./_benchmark/temp +composer create-project codeigniter4/appstarter:^4.3 --no-dev ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/codeigniter-4.1/_benchmark/update.sh b/codeigniter-4.3/_benchmark/update.sh similarity index 100% rename from codeigniter-4.1/_benchmark/update.sh rename to codeigniter-4.3/_benchmark/update.sh diff --git a/fastroute-1.3/composer.json b/fastroute-1.3/composer.json index c795481..4a4220f 100644 --- a/fastroute-1.3/composer.json +++ b/fastroute-1.3/composer.json @@ -1,6 +1,6 @@ { "require": { - "nikic/fast-route": "1.3" + "nikic/fast-route": "^1.3" }, "autoload": { "psr-4": { diff --git a/fatfree-3.8.0/Controllers/HelloWorldController.php b/fatfree-3.8.1/Controllers/HelloWorldController.php similarity index 100% rename from fatfree-3.8.0/Controllers/HelloWorldController.php rename to fatfree-3.8.1/Controllers/HelloWorldController.php diff --git a/fatfree-3.8.0/_benchmark/clean.sh b/fatfree-3.8.1/_benchmark/clean.sh similarity index 100% rename from fatfree-3.8.0/_benchmark/clean.sh rename to fatfree-3.8.1/_benchmark/clean.sh diff --git a/fatfree-3.8.0/_benchmark/clear-cache.sh b/fatfree-3.8.1/_benchmark/clear-cache.sh similarity index 100% rename from fatfree-3.8.0/_benchmark/clear-cache.sh rename to fatfree-3.8.1/_benchmark/clear-cache.sh diff --git a/fatfree-3.8.0/_benchmark/hello_world.sh b/fatfree-3.8.1/_benchmark/hello_world.sh similarity index 100% rename from fatfree-3.8.0/_benchmark/hello_world.sh rename to fatfree-3.8.1/_benchmark/hello_world.sh diff --git a/fatfree-3.8.0/_benchmark/setup.sh b/fatfree-3.8.1/_benchmark/setup.sh similarity index 100% rename from fatfree-3.8.0/_benchmark/setup.sh rename to fatfree-3.8.1/_benchmark/setup.sh diff --git a/fatfree-3.8.0/_benchmark/update.sh b/fatfree-3.8.1/_benchmark/update.sh similarity index 100% rename from fatfree-3.8.0/_benchmark/update.sh rename to fatfree-3.8.1/_benchmark/update.sh diff --git a/fatfree-3.8.0/composer.json b/fatfree-3.8.1/composer.json similarity index 75% rename from fatfree-3.8.0/composer.json rename to fatfree-3.8.1/composer.json index d4f7185..b60e9a8 100755 --- a/fatfree-3.8.0/composer.json +++ b/fatfree-3.8.1/composer.json @@ -1,6 +1,6 @@ { "require": { - "bcosca/fatfree-core": "3.8.0" + "bcosca/fatfree-core": "^3.8.1" }, "autoload": { "psr-4": { diff --git a/fatfree-3.8.0/index.php b/fatfree-3.8.1/index.php similarity index 100% rename from fatfree-3.8.0/index.php rename to fatfree-3.8.1/index.php diff --git a/fuelphp-1.9/_benchmark/setup.sh b/fuelphp-1.9/_benchmark/setup.sh index f2164be..b14456c 100755 --- a/fuelphp-1.9/_benchmark/setup.sh +++ b/fuelphp-1.9/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project fuel/fuel:1.9.0 --prefer-dist ./_benchmark/temp +composer create-project fuel/fuel:^1.9.0 --prefer-dist ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/index.php b/index.php index d53f1f0..78931fd 100644 --- a/index.php +++ b/index.php @@ -57,13 +57,14 @@ echo "

" . date("Y/m/d H:i:s", filemtime($resultsFile)) . "

"; ?>
- +
-
- +
- + +
+ diff --git a/laminas-2.0.x.dev/_benchmark/clean.sh b/laminas-2.0/_benchmark/clean.sh similarity index 100% rename from laminas-2.0.x.dev/_benchmark/clean.sh rename to laminas-2.0/_benchmark/clean.sh diff --git a/laminas-2.0.x.dev/_benchmark/clear-cache.sh b/laminas-2.0/_benchmark/clear-cache.sh similarity index 100% rename from laminas-2.0.x.dev/_benchmark/clear-cache.sh rename to laminas-2.0/_benchmark/clear-cache.sh diff --git a/laminas-2.0.x.dev/_benchmark/hello_world.sh b/laminas-2.0/_benchmark/hello_world.sh similarity index 100% rename from laminas-2.0.x.dev/_benchmark/hello_world.sh rename to laminas-2.0/_benchmark/hello_world.sh diff --git a/laminas-2.0.x.dev/_benchmark/laminas/module/Application/config/module.config.php b/laminas-2.0/_benchmark/laminas/module/Application/config/module.config.php similarity index 100% rename from laminas-2.0.x.dev/_benchmark/laminas/module/Application/config/module.config.php rename to laminas-2.0/_benchmark/laminas/module/Application/config/module.config.php diff --git a/laminas-2.0.x.dev/_benchmark/laminas/module/Application/src/Controller/HelloWorldController.php b/laminas-2.0/_benchmark/laminas/module/Application/src/Controller/HelloWorldController.php similarity index 100% rename from laminas-2.0.x.dev/_benchmark/laminas/module/Application/src/Controller/HelloWorldController.php rename to laminas-2.0/_benchmark/laminas/module/Application/src/Controller/HelloWorldController.php diff --git a/laminas-2.0.x.dev/_benchmark/laminas/public/index.php b/laminas-2.0/_benchmark/laminas/public/index.php similarity index 100% rename from laminas-2.0.x.dev/_benchmark/laminas/public/index.php rename to laminas-2.0/_benchmark/laminas/public/index.php diff --git a/laminas-2.0.x.dev/_benchmark/setup.sh b/laminas-2.0/_benchmark/setup.sh similarity index 74% rename from laminas-2.0.x.dev/_benchmark/setup.sh rename to laminas-2.0/_benchmark/setup.sh index 470273a..27b40f8 100755 --- a/laminas-2.0.x.dev/_benchmark/setup.sh +++ b/laminas-2.0/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project laminas/laminas-mvc-skeleton:2.0.x-dev ./_benchmark/temp +composer create-project laminas/laminas-mvc-skeleton:^2.0 ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/laminas-2.0.x.dev/_benchmark/update.sh b/laminas-2.0/_benchmark/update.sh similarity index 100% rename from laminas-2.0.x.dev/_benchmark/update.sh rename to laminas-2.0/_benchmark/update.sh diff --git a/laravel-9.1/_benchmark/clean.sh b/laravel-10.0/_benchmark/clean.sh similarity index 100% rename from laravel-9.1/_benchmark/clean.sh rename to laravel-10.0/_benchmark/clean.sh diff --git a/laravel-9.1/_benchmark/clear-cache.sh b/laravel-10.0/_benchmark/clear-cache.sh similarity index 100% rename from laravel-9.1/_benchmark/clear-cache.sh rename to laravel-10.0/_benchmark/clear-cache.sh diff --git a/laravel-9.1/_benchmark/hello_world.sh b/laravel-10.0/_benchmark/hello_world.sh similarity index 100% rename from laravel-9.1/_benchmark/hello_world.sh rename to laravel-10.0/_benchmark/hello_world.sh diff --git a/laravel-9.1/_benchmark/laravel/app/Http/Controllers/HelloWorldController.php b/laravel-10.0/_benchmark/laravel/app/Http/Controllers/HelloWorldController.php similarity index 100% rename from laravel-9.1/_benchmark/laravel/app/Http/Controllers/HelloWorldController.php rename to laravel-10.0/_benchmark/laravel/app/Http/Controllers/HelloWorldController.php diff --git a/laravel-9.1/_benchmark/laravel/public/index.php b/laravel-10.0/_benchmark/laravel/public/index.php similarity index 100% rename from laravel-9.1/_benchmark/laravel/public/index.php rename to laravel-10.0/_benchmark/laravel/public/index.php diff --git a/laravel-9.1/_benchmark/laravel/routes/web.php b/laravel-10.0/_benchmark/laravel/routes/web.php similarity index 100% rename from laravel-9.1/_benchmark/laravel/routes/web.php rename to laravel-10.0/_benchmark/laravel/routes/web.php diff --git a/laravel-9.1/_benchmark/setup.sh b/laravel-10.0/_benchmark/setup.sh similarity index 80% rename from laravel-9.1/_benchmark/setup.sh rename to laravel-10.0/_benchmark/setup.sh index bc468de..9e4f893 100755 --- a/laravel-9.1/_benchmark/setup.sh +++ b/laravel-10.0/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project --prefer-dist laravel/laravel:9.1 ./_benchmark/temp +composer create-project --prefer-dist laravel/laravel:^10.0 ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/laravel-9.1/_benchmark/update.sh b/laravel-10.0/_benchmark/update.sh similarity index 100% rename from laravel-9.1/_benchmark/update.sh rename to laravel-10.0/_benchmark/update.sh diff --git a/leaf-3.0/Controllers/HelloWorldController.php b/leaf-3.3/Controllers/HelloWorldController.php similarity index 100% rename from leaf-3.0/Controllers/HelloWorldController.php rename to leaf-3.3/Controllers/HelloWorldController.php diff --git a/leaf-3.0/_benchmark/clean.sh b/leaf-3.3/_benchmark/clean.sh similarity index 100% rename from leaf-3.0/_benchmark/clean.sh rename to leaf-3.3/_benchmark/clean.sh diff --git a/leaf-3.0/_benchmark/clear-cache.sh b/leaf-3.3/_benchmark/clear-cache.sh similarity index 100% rename from leaf-3.0/_benchmark/clear-cache.sh rename to leaf-3.3/_benchmark/clear-cache.sh diff --git a/leaf-3.0/_benchmark/hello_world.sh b/leaf-3.3/_benchmark/hello_world.sh similarity index 100% rename from leaf-3.0/_benchmark/hello_world.sh rename to leaf-3.3/_benchmark/hello_world.sh diff --git a/leaf-3.0/_benchmark/setup.sh b/leaf-3.3/_benchmark/setup.sh similarity index 100% rename from leaf-3.0/_benchmark/setup.sh rename to leaf-3.3/_benchmark/setup.sh diff --git a/leaf-3.0/_benchmark/update.sh b/leaf-3.3/_benchmark/update.sh similarity index 100% rename from leaf-3.0/_benchmark/update.sh rename to leaf-3.3/_benchmark/update.sh diff --git a/leaf-3.0/composer.json b/leaf-3.3/composer.json similarity index 81% rename from leaf-3.0/composer.json rename to leaf-3.3/composer.json index c61215d..a8103a7 100644 --- a/leaf-3.0/composer.json +++ b/leaf-3.3/composer.json @@ -1,6 +1,6 @@ { "require": { - "leafs/leaf": "3.0" + "leafs/leaf": "^3.3" }, "autoload": { "psr-4": { diff --git a/leaf-3.0/index.php b/leaf-3.3/index.php similarity index 100% rename from leaf-3.0/index.php rename to leaf-3.3/index.php diff --git a/lumen-9.0/_benchmark/clean.sh b/lumen-10.0/_benchmark/clean.sh similarity index 100% rename from lumen-9.0/_benchmark/clean.sh rename to lumen-10.0/_benchmark/clean.sh diff --git a/lumen-9.0/_benchmark/clear-cache.sh b/lumen-10.0/_benchmark/clear-cache.sh similarity index 100% rename from lumen-9.0/_benchmark/clear-cache.sh rename to lumen-10.0/_benchmark/clear-cache.sh diff --git a/lumen-9.0/_benchmark/hello_world.sh b/lumen-10.0/_benchmark/hello_world.sh similarity index 100% rename from lumen-9.0/_benchmark/hello_world.sh rename to lumen-10.0/_benchmark/hello_world.sh diff --git a/lumen-9.0/_benchmark/lumen/app/Http/Controllers/HelloWorldController.php b/lumen-10.0/_benchmark/lumen/app/Http/Controllers/HelloWorldController.php similarity index 100% rename from lumen-9.0/_benchmark/lumen/app/Http/Controllers/HelloWorldController.php rename to lumen-10.0/_benchmark/lumen/app/Http/Controllers/HelloWorldController.php diff --git a/lumen-9.0/_benchmark/lumen/public/index.php b/lumen-10.0/_benchmark/lumen/public/index.php similarity index 100% rename from lumen-9.0/_benchmark/lumen/public/index.php rename to lumen-10.0/_benchmark/lumen/public/index.php diff --git a/lumen-9.0/_benchmark/lumen/routes/web.php b/lumen-10.0/_benchmark/lumen/routes/web.php similarity index 100% rename from lumen-9.0/_benchmark/lumen/routes/web.php rename to lumen-10.0/_benchmark/lumen/routes/web.php diff --git a/lumen-9.0/_benchmark/setup.sh b/lumen-10.0/_benchmark/setup.sh similarity index 77% rename from lumen-9.0/_benchmark/setup.sh rename to lumen-10.0/_benchmark/setup.sh index b9e7c33..88bf9cb 100755 --- a/lumen-9.0/_benchmark/setup.sh +++ b/lumen-10.0/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project --prefer-dist laravel/lumen:9.0 ./_benchmark/temp +composer create-project --prefer-dist laravel/lumen:^10.0 ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/lumen-9.0/_benchmark/update.sh b/lumen-10.0/_benchmark/update.sh similarity index 100% rename from lumen-9.0/_benchmark/update.sh rename to lumen-10.0/_benchmark/update.sh diff --git a/phroute-2.2/composer.json b/phroute-2.2/composer.json index ca08459..eed4e24 100755 --- a/phroute-2.2/composer.json +++ b/phroute-2.2/composer.json @@ -1,6 +1,6 @@ { "require": { - "phroute/phroute": "2.2" + "phroute/phroute": "^2.2" }, "autoload": { "psr-4": { diff --git a/silex-2.3/composer.json b/silex-2.3/composer.json index 50b5de8..e55667d 100644 --- a/silex-2.3/composer.json +++ b/silex-2.3/composer.json @@ -1,6 +1,6 @@ { "require": { - "silex/silex": "2.3" + "silex/silex": "^2.3" }, "autoload": { "psr-4": { diff --git a/slim-3.12/composer.json b/slim-3.12/composer.json index ce52172..3a06494 100755 --- a/slim-3.12/composer.json +++ b/slim-3.12/composer.json @@ -1,6 +1,6 @@ { "require": { - "slim/slim": "3.12.3" + "slim/slim": "^3.12" }, "config": { "optimize-autoloader": true diff --git a/slim-4.10/Controllers/HelloWorldController.php b/slim-4.11/Controllers/HelloWorldController.php similarity index 100% rename from slim-4.10/Controllers/HelloWorldController.php rename to slim-4.11/Controllers/HelloWorldController.php diff --git a/slim-4.10/_benchmark/clean.sh b/slim-4.11/_benchmark/clean.sh similarity index 100% rename from slim-4.10/_benchmark/clean.sh rename to slim-4.11/_benchmark/clean.sh diff --git a/slim-4.10/_benchmark/clear-cache.sh b/slim-4.11/_benchmark/clear-cache.sh similarity index 100% rename from slim-4.10/_benchmark/clear-cache.sh rename to slim-4.11/_benchmark/clear-cache.sh diff --git a/slim-4.10/_benchmark/hello_world.sh b/slim-4.11/_benchmark/hello_world.sh similarity index 100% rename from slim-4.10/_benchmark/hello_world.sh rename to slim-4.11/_benchmark/hello_world.sh diff --git a/slim-4.10/_benchmark/setup.sh b/slim-4.11/_benchmark/setup.sh similarity index 100% rename from slim-4.10/_benchmark/setup.sh rename to slim-4.11/_benchmark/setup.sh diff --git a/slim-4.10/_benchmark/update.sh b/slim-4.11/_benchmark/update.sh similarity index 100% rename from slim-4.10/_benchmark/update.sh rename to slim-4.11/_benchmark/update.sh diff --git a/slim-4.10/composer.json b/slim-4.11/composer.json similarity index 85% rename from slim-4.10/composer.json rename to slim-4.11/composer.json index 400614e..c4c37a7 100644 --- a/slim-4.10/composer.json +++ b/slim-4.11/composer.json @@ -1,6 +1,6 @@ { "require": { - "slim/slim": "4.10.0", + "slim/slim": "^4.11", "slim/psr7": "^1.5", "slim/http": "^1.2" }, diff --git a/slim-4.10/index.php b/slim-4.11/index.php similarity index 87% rename from slim-4.10/index.php rename to slim-4.11/index.php index 8cdd419..4770eb4 100644 --- a/slim-4.10/index.php +++ b/slim-4.11/index.php @@ -7,7 +7,7 @@ $app = AppFactory::create(); // xampp -$app->setBasePath("/PHP-Frameworks-Bench/slim-4.10/index.php"); +$app->setBasePath("/PHP-Frameworks-Bench/slim-4.11/index.php"); // Add error middleware $app->addErrorMiddleware(false, true, true); diff --git a/symfony-5.4/_benchmark/setup.sh b/symfony-5.4/_benchmark/setup.sh index 0a19c2d..916ef41 100755 --- a/symfony-5.4/_benchmark/setup.sh +++ b/symfony-5.4/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project symfony/skeleton:5.4.99 ./_benchmark/temp +composer create-project symfony/skeleton:^5.4 ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/symfony-6.0/_benchmark/clean.sh b/symfony-6.2/_benchmark/clean.sh similarity index 100% rename from symfony-6.0/_benchmark/clean.sh rename to symfony-6.2/_benchmark/clean.sh diff --git a/symfony-6.0/_benchmark/clear-cache.sh b/symfony-6.2/_benchmark/clear-cache.sh similarity index 100% rename from symfony-6.0/_benchmark/clear-cache.sh rename to symfony-6.2/_benchmark/clear-cache.sh diff --git a/symfony-6.0/_benchmark/hello_world.sh b/symfony-6.2/_benchmark/hello_world.sh similarity index 100% rename from symfony-6.0/_benchmark/hello_world.sh rename to symfony-6.2/_benchmark/hello_world.sh diff --git a/symfony-6.0/_benchmark/setup.sh b/symfony-6.2/_benchmark/setup.sh similarity index 81% rename from symfony-6.0/_benchmark/setup.sh rename to symfony-6.2/_benchmark/setup.sh index 21af94a..66a9036 100755 --- a/symfony-6.0/_benchmark/setup.sh +++ b/symfony-6.2/_benchmark/setup.sh @@ -1,7 +1,7 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project symfony/skeleton:6.0.99 ./_benchmark/temp +composer create-project symfony/skeleton:^6.2 ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller diff --git a/symfony-6.0/_benchmark/symfony/config/routes.yaml b/symfony-6.2/_benchmark/symfony/config/routes.yaml similarity index 100% rename from symfony-6.0/_benchmark/symfony/config/routes.yaml rename to symfony-6.2/_benchmark/symfony/config/routes.yaml diff --git a/symfony-6.0/_benchmark/symfony/public/index.php b/symfony-6.2/_benchmark/symfony/public/index.php similarity index 100% rename from symfony-6.0/_benchmark/symfony/public/index.php rename to symfony-6.2/_benchmark/symfony/public/index.php diff --git a/symfony-6.0/_benchmark/symfony/src/Controller/HelloWorldController.php b/symfony-6.2/_benchmark/symfony/src/Controller/HelloWorldController.php similarity index 100% rename from symfony-6.0/_benchmark/symfony/src/Controller/HelloWorldController.php rename to symfony-6.2/_benchmark/symfony/src/Controller/HelloWorldController.php diff --git a/symfony-6.0/_benchmark/update.sh b/symfony-6.2/_benchmark/update.sh similarity index 100% rename from symfony-6.0/_benchmark/update.sh rename to symfony-6.2/_benchmark/update.sh diff --git a/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/config/config.php b/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/config/config.php index 6c001e3..73c3986 100644 --- a/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/config/config.php +++ b/ubiquity-2.4.x.dev/_benchmark/ubiquity/app/config/config.php @@ -13,8 +13,8 @@ ], "sessionName"=>"temp", "namespaces"=>[], - "templateEngine"=>'Ubiquity\\views\\engine\\Twig', - "templateEngineOptions"=>array("cache"=>false), + //"templateEngine"=>'Ubiquity\\views\\engine\\Twig', + "templateEngineOptions"=>array("cache"=>true), "test"=>false, "debug"=>false, "logger"=>function(){return new \Ubiquity\log\libraries\UMonolog("temp",\Monolog\Logger::INFO);}, diff --git a/yii-2.0-basic/_benchmark/setup.sh b/yii-2.0-basic/_benchmark/setup.sh index ab3d31f..fca46a5 100755 --- a/yii-2.0-basic/_benchmark/setup.sh +++ b/yii-2.0-basic/_benchmark/setup.sh @@ -1,13 +1,14 @@ #!/bin/sh # create project rm -rf _benchmark/temp -composer create-project --prefer-dist yiisoft/yii2-app-basic:"^2.0" ./_benchmark/temp +composer create-project --prefer-dist yiisoft/yii2-app-basic:^2.0 ./_benchmark/temp mv ./_benchmark/temp/{.,}* ./ # have the route & controller yes|cp -r _benchmark/yii2/* ./ # some enhancements -composer install --no-dev -o -rm ./public/.htaccess - +# composer install --no-dev -o +# I used --ignore-platform-req=php because at the moment +# yii 2 basic not support php 8.2 +composer --ignore-platform-req=php install --no-dev -o \ No newline at end of file