Giter VIP home page Giter VIP logo

Comments (15)

kenjis avatar kenjis commented on May 30, 2024

See output/results.hello_world.log. It seems your data is broken.

Normal data: https://github.com/kenjis/php-framework-benchmark/blob/master/output/results.hello_world.log

from php-framework-benchmark.

sing88 avatar sing88 commented on May 30, 2024

this content of results.hello_world.log

phalcon-2.0: 2546.68: </body></html>: </body></html>
ice-1.0: 1567.69: </body></html>: </body></html>
slim-2.6: 1767.52: </body></html>: </body></html>
codeigniter-3.0: 2642.22: </body></html>: </body></html>
lumen-5.0: 2848.80: </body></html>: </body></html>
yii-2.0: 2320.53: </body></html>: </body></html>
silex-1.2: 2817.86: </body></html>: </body></html>
cygnite-1.3: 2199.55: </body></html>: </body></html>
bear-1.0: 1767.56: </body></html>: </body></html>
fuel-1.8-dev: 2211.19: </body></html>: </body></html>
cake-3.0: 2854.04: </body></html>: </body></html>
aura-2.0: 2101.84: </body></html>: </body></html>

from php-framework-benchmark.

kenjis avatar kenjis commented on May 30, 2024

It seems you don't install this correctly.

You should configure your web server that you can access this repository as http://127.0.0.1/php-framework-benchmark/. Or you have to change:
https://github.com/kenjis/php-framework-benchmark/blob/master/benchmark.sh#L3

from php-framework-benchmark.

sing88 avatar sing88 commented on May 30, 2024

see:

screen1

from php-framework-benchmark.

kenjis avatar kenjis commented on May 30, 2024

You must install and setup correctly: https://github.com/kenjis/php-framework-benchmark#how-to-benchmark

It seems ab requests to 404 pages. Make sure if you can see hello world page like this:

Hello World! 1310720:0.005535

Text only. No html tags.

from php-framework-benchmark.

xf3 avatar xf3 commented on May 30, 2024

kenjis, could you please provide your server configuration? Out of the box only yii works fine, all the other frameworks return 404/500 errors, I think this is because of missing URL rewriting configurations? With some additions, I could make about 50% of frameworks to work properly, but the others continue to return error pages. Have you added something to .htaccess or nginx.conf or similar files? I'm trying to setup the project on nginx server.

from php-framework-benchmark.

kenjis avatar kenjis commented on May 30, 2024

@xf3 I don't use mod_rewrite. If you enable it, some frameworks may retrun errors.

from php-framework-benchmark.

xf3 avatar xf3 commented on May 30, 2024

@kenjis strange then, as I said, only yii uses to work after running setup script. Probably with Apache situation differs.

from php-framework-benchmark.

kenjis avatar kenjis commented on May 30, 2024

My Apache config:

<VirtualHost *:80>
  DocumentRoot /home/vagrant/public
</VirtualHost>

from php-framework-benchmark.

xf3 avatar xf3 commented on May 30, 2024

Thanks, will try to figure out the problem

from php-framework-benchmark.

mruz avatar mruz commented on May 30, 2024

I have similar problem with some frameworks (eg. symfony-2.7, laravel-5.1).

I see after run in the browser http://benchmark/laravel-5.1/public/index.php/hello/index I see only Hello World! without memory usage and time. I see the code after response send() in the laravel-5.1/public/index.php is not running:

$response->send();

$kernel->terminate($request, $response);

printf(
    "\n%' 8d:%f",
    memory_get_peak_usage(true),
    microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']
);

laravel-5.1.output

Hello World!

results.hello_world.log

phalcon-2.0: 4080.87:   524288: 0.000593
ice-1.0: 4368.31:   524288: 0.000746
codeigniter-3.0: 472.66:  1310720: 0.010451
yii-2.0: 292.29:  2883584: 0.016363
symfony-2.7: 76.55: Hello World!: Hello World!
laravel-5.1: 83.63: Hello World!: Hello World!
zf-2.4: 82.66:  6815744: 0.039616

Any idea?

from php-framework-benchmark.

kenjis avatar kenjis commented on May 30, 2024

You probably use PHP FPM.
http://symfony.com/doc/current/components/http_kernel/introduction.html#the-kernel-terminate-event

from php-framework-benchmark.

mruz avatar mruz commented on May 30, 2024

Yes, I'm using the latest php-fpm 5.6.14

----- Reply message -----
Od: "kenjis" [email protected]
Do: "kenjis/php-framework-benchmark" [email protected]
DW: "Mariusz Łączak" [email protected]
Temat: [php-framework-benchmark] Division by zero (#20)
Data: czw., paź 22, 2015 22:46

You probably use PHP FPM.

http://symfony.com/doc/current/components/http_kernel/introduction.html#the-kernel-terminate-event


Reply to this email directly or view it on GitHub.

from php-framework-benchmark.

mixisLv avatar mixisLv commented on May 30, 2024

How to fix it?

from php-framework-benchmark.

gsouf avatar gsouf commented on May 30, 2024

@kenjis it appears that the configuration given in the README requires to run apache2 with mod_php

from php-framework-benchmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.