-
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.
Merge pull request #6 from myaaghubi/v2.0
V2.0.0
- Loading branch information
Showing
72 changed files
with
406 additions
and
204 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
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
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,53 @@ | ||
#!/bin/sh | ||
|
||
if [ ! `which php` ]; then | ||
echo "php not found." | ||
exit 1; | ||
fi | ||
|
||
function showHelp() | ||
{ | ||
cat << HEREDOC | ||
Usage: bash check.sh [-t pure-php/ slim-*] | ||
Optional Arguments: | ||
-h, --help Show this help message and exit | ||
-t, --target Specify your target framework/s for benchmarking | ||
Separate them via space. | ||
HEREDOC | ||
} | ||
|
||
export param_targets="$frameworks_list" | ||
|
||
oldIFS="$IFS" | ||
paramsin="${@%/}" | ||
IFS='()' | ||
# ${paramsin%%*( )} not a good idea | ||
paramsin=(`php ./libs/trim.php "r" "${paramsin}"`) | ||
IFS=';' | ||
params=(`php ./libs/strreplace.php " -" ";-" " ${paramsin}"`) | ||
IFS=$oldIFS | ||
|
||
for option in "${params[@]}" | ||
do | ||
case "$option" in | ||
-t*|--target*) | ||
arg_=${option//--target /} | ||
arg_=${arg_//-t /} | ||
if [ ${#arg_} -ge 5 ]; then | ||
param_targets="$arg_" | ||
fi | ||
;; | ||
-h|--help) | ||
showHelp; | ||
;; | ||
""|" ") | ||
;; | ||
*) | ||
echo "\"${option}\" not available" | ||
exit 1 | ||
;; | ||
esac | ||
done |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# base url | ||
base="http://127.0.0.1/PHP-Frameworks-Bench" | ||
|
||
# 30-3000 | ||
# higher duration is better to get more reliable results | ||
duration=60 | ||
|
||
# for a high-end host you may need to put | ||
# a higher number | ||
threads=50 | ||
|
||
# consider your webservers configuration | ||
# max live connections | ||
connections=500 | ||
|
||
# Frameworks list | ||
# Sorted alphabetically | ||
frameworks_list=" | ||
cakephp-4.3 | ||
codeigniter-4.1 | ||
fastroute-1.3 | ||
fatfree-3.8.0 | ||
frameworkx-dev | ||
fuelphp-1.9 | ||
laminas-2.0.x.dev | ||
laravel-9.1 | ||
leaf-3.0 | ||
lumen-9.0 | ||
phroute-2.2 | ||
pure-php | ||
siler-1.7.9 | ||
silex-2.3 | ||
slim-3.12 | ||
slim-4.10 | ||
symfony-5.4 | ||
symfony-6.0 | ||
ubiquity-2.4.x.dev | ||
yii-2.0-basic | ||
" |
Oops, something went wrong.