Skip to content

Commit da09601

Browse files
authored
Merge branch 'dev' into nette-3.3
2 parents bd4099c + 1df8440 commit da09601

File tree

14 files changed

+121
-7
lines changed

14 files changed

+121
-7
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

cakephp-5.2/_benchmark/cakephp/src/Controller/HelloWorldController.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

cakephp-5.2/_benchmark/cakephp/webroot/index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@
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';

config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ laravel-11.0
2626
laravel-12.11
2727
leaf-4.4
2828
lumen-10.0
29+
maravel-10.51
2930
nette-3.3
3031
phroute-2.2
3132
pure-php

laravel-12.11/_benchmark/laravel/app/Http/Controllers/HelloWorldController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
class 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

laravel-12.11/_benchmark/laravel/public/index.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
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';

maravel-10.51/_benchmark/clean.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
rm -rf !("_benchmark")
3+
find -path './.*' -delete
4+
rm -rf _benchmark/temp
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# clear cache
3+
php artisan cache:clear
4+
echo -e "done"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
url="$base/$fw/public/index.php/hello/index"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}

0 commit comments

Comments
 (0)