File tree Expand file tree Collapse file tree 14 files changed +121
-7
lines changed
cakephp-5.2/_benchmark/cakephp
laravel-12.11/_benchmark/laravel Expand file tree Collapse file tree 14 files changed +121
-7
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ Note: This project is based on
238238* [ Laravel] ( https://github.com/laravel/laravel )
239239* [ Leaf] ( https://github.com/leafsphp/leaf )
240240* [ Lumen] ( https://github.com/laravel/lumen )
241+ * [ Maravel] ( https://github.com/macropay-solutions/maravel )
241242* [ Nette] ( https://github.com/nette/web-project )
242243* [ PhRoute] ( https://github.com/mrjgreen/phroute )
243244* [ Silex] ( https://github.com/silexphp/Silex )
Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ class HelloWorldController extends AppController {
1212
1313 public function display ()
1414 {
15- echo $ this ->response ->withStringBody ('Hello World! ' );
16- require $ _SERVER ['DOCUMENT_ROOT ' ].'/PHP-Frameworks-Bench/libs/output_data.php ' ;
17- return "" ;
15+ return $ this ->response ->withStringBody ('Hello World! ' );
16+ // uncomment this line for php-fpm
17+ // require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
18+ // return "";
1819 }
1920}
Original file line number Diff line number Diff line change 3838
3939/* *** PHP-Frameworks-Bench *** */
4040// check out the HelloWorldController.php
41- // require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
41+ // for php-fpm:
42+ // comment this line and uncomment it in HelloWorldController.php
43+ // make sure to run sudo bash disable-fastcgi.sh
44+ require $ _SERVER ['DOCUMENT_ROOT ' ].'/PHP-Frameworks-Bench/libs/output_data.php ' ;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ laravel-11.0
2626laravel-12.11
2727leaf-4.4
2828lumen-10.0
29+ maravel-10.51
2930nette-3.3
3031phroute-2.2
3132pure-php
Original file line number Diff line number Diff line change 88class HelloWorldController extends Controller {
99 public function index (): void {
1010 echo 'Hello World! ' ;
11- require $ _SERVER ['DOCUMENT_ROOT ' ].'/PHP-Frameworks-Bench/libs/output_data.php ' ;
11+ // uncomment this line for php-fpm
12+ // require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
1213 }
1314}
1415
Original file line number Diff line number Diff line change 1818
1919
2020/* *** PHP-Frameworks-Bench *** */
21- // check out the HelloWorldController.php
22- // require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';
21+ // for php-fpm:
22+ // comment this line and uncomment it in HelloWorldController.php
23+ // make sure to run sudo bash disable-fastcgi.sh
24+ require $ _SERVER ['DOCUMENT_ROOT ' ].'/PHP-Frameworks-Bench/libs/output_data.php ' ;
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ rm -rf ! (" _benchmark" )
3+ find -path ' ./.*' -delete
4+ rm -rf _benchmark/temp
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # clear cache
3+ php artisan cache:clear
4+ echo -e " done"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ url=" $base /$fw /public/index.php/hello/index"
Original file line number Diff line number Diff line change 1+ <?php
2+ /*
3+ PHP-Frameworks-Bench
4+ this is a simple hello world controller to make benchmark
5+ */
6+ namespace App \Http \Controllers ;
7+
8+ class HelloWorldController extends Controller
9+ {
10+ public function index (): void
11+ {
12+ echo 'Hello World! ' ;
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments