-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frameworks updated, checkout `benchmark.config` A bit changes
- Loading branch information
Showing
84 changed files
with
109 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
cakephp-4.3/_benchmark/setup.sh → cakephp-4.4/_benchmark/setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
// Check PHP version. | ||
$minPhpVersion = '7.4'; // If you update this, don't forget to update `spark`. | ||
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) { | ||
$message = sprintf( | ||
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s', | ||
$minPhpVersion, | ||
PHP_VERSION | ||
); | ||
|
||
exit($message); | ||
} | ||
|
||
// Path to the front controller (this file) | ||
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR); | ||
|
||
// Ensure the current directory is pointing to the front controller's directory | ||
chdir(FCPATH); | ||
|
||
/* | ||
*--------------------------------------------------------------- | ||
* BOOTSTRAP THE APPLICATION | ||
*--------------------------------------------------------------- | ||
* This process sets up the path constants, loads and registers | ||
* our autoloader, along with Composer's, loads our constants | ||
* and fires up an environment-specific bootstrapping. | ||
*/ | ||
|
||
// Load our paths config file | ||
// This is the line that might need to be changed, depending on your folder structure. | ||
require FCPATH . '../app/Config/Paths.php'; | ||
// ^^^ Change this line if you move your application folder | ||
|
||
$paths = new Config\Paths(); | ||
|
||
// Location of the framework bootstrap file. | ||
require rtrim($paths->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'; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
codeigniter-4.1/_benchmark/setup.sh → codeigniter-4.3/_benchmark/setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"nikic/fast-route": "1.3" | ||
"nikic/fast-route": "^1.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"bcosca/fatfree-core": "3.8.0" | ||
"bcosca/fatfree-core": "^3.8.1" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
laminas-2.0.x.dev/_benchmark/setup.sh → laminas-2.0/_benchmark/setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
laravel-9.1/_benchmark/setup.sh → laravel-10.0/_benchmark/setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"leafs/leaf": "3.0" | ||
"leafs/leaf": "^3.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"phroute/phroute": "2.2" | ||
"phroute/phroute": "^2.2" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"silex/silex": "2.3" | ||
"silex/silex": "^2.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"slim/slim": "3.12.3" | ||
"slim/slim": "^3.12" | ||
}, | ||
"config": { | ||
"optimize-autoloader": true | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"slim/slim": "4.10.0", | ||
"slim/slim": "^4.11", | ||
"slim/psr7": "^1.5", | ||
"slim/http": "^1.2" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
symfony-6.0/_benchmark/setup.sh → symfony-6.2/_benchmark/setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |