-
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.
1. Some bug fixes. 2. Common errors solved. 3. clean.sh added. 4. update.sh & setup.sh & list.sh updated. 5. All frameworks updated. 6. Some enhancements & some minor changes.
- Loading branch information
Showing
2,289 changed files
with
654 additions
and
284,205 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ cd benchmarks | |
|
||
sh hello_world.sh "$base" | ||
|
||
php ../bin/show_results_table.php | ||
php ../bin/show_results_table.php |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
18 changes: 18 additions & 0 deletions
18
cakephp-4.3/_benchmark/cakephp/src/Controller/HelloWorldController.php
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,18 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/* | ||
php-frameworks-bench | ||
this is a simple hello world controller to make benchmark | ||
*/ | ||
|
||
namespace App\Controller; | ||
|
||
use Cake\Http\Response; | ||
|
||
// such simple controller | ||
class HelloWorldController extends AppController { | ||
public $autoRender = false; | ||
public function display(string ...$path): ?Response { | ||
return $this->response->withStringBody('Hello World!'); | ||
} | ||
} |
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,3 @@ | ||
#!/bin/sh | ||
rm -rf !("_benchmark") | ||
rm -rf _benchmark/temp |
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,4 +1,13 @@ | ||
#!/bin/sh | ||
# create project | ||
rm -rf _benchmark/temp | ||
composer create-project --prefer-dist cakephp/app:4.3 ./_benchmark/temp | ||
yes|mv ./_benchmark/temp/{.,}* ./ | ||
|
||
# have the route & controller | ||
yes|cp -r _benchmark/cakephp/* ./ | ||
|
||
# some enhancement | ||
composer dump-autoload -o | ||
sudo rm -rf tmp/* | ||
composer install --no-interaction --no-dev -o |
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,10 @@ | ||
#!/bin/sh | ||
composer update | ||
|
||
# have the route & controller | ||
yes|cp -r _benchmark/cakephp/* ./ | ||
|
||
# some enhancement | ||
composer dump-autoload -o | ||
sudo rm -rf tmp/* | ||
composer install --no-interaction --no-dev -o |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.