-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poor AB bench results #124
Comments
What do you mean by "HTTP mode" and "CLI environment"? |
At least yii2-basic doesn't have db queries on page load. |
HTTP mode = browsing in a browser OK - will check what config is loaded in CLI and check DB connection. Edit: slightly updated results for yii2 after running composer update. |
After investigation I found:
I am wondering - does AB bench in yii3-demo work well for anyone else? Aside notes:
|
@lubosdz top performance eaters are https://github.com/yiisoft/yii-demo/blob/master/public/index.php#L15 |
Also we haven't worked on performance yet focusing on design mostly. |
You should take into account the Cycle ORM initialization. Try to disable config rebuild and Cycle ORM. |
Another thing is that debugger is turned on collecting ~500kb of data each request. https://github.com/yiisoft/yii-demo/blob/master/config/params.php#L8 |
Anyway, it should not take 6! seconds to respond and you can see it when running web app. There must be something that makes ab unhappy/fail. |
Yii3 (yiisoft/yii-demo) AB benchmark http://demo.yiipeople.site:
|
Yii3 (yiisoft/app) AB benchmark http://yiipeople.site:
|
Yii2 (yiisoft/app-basic) AB benchmark http://basic.yiipeople.site/index.php:
|
Interesting results, @terabytesoftw. Have you turned off YII_DEBUG in Yii 2? |
Yes. |
Then, despite not optimizing Yii 3 yet, it gives 266 rps vs 227 rps with Yii 2. That's unexpected but exciting. |
Thanx for advices. The 404 timeout in EDIT:
In yii2-basic accessing Though I dont see anything wrong in .htaccess. |
Guys, we very strong wait Yii3 and it must be faster than Yii2 of course! ) |
Working nicely. xdebug in apache's php.ini disabled as mentioned in your suggestions. yii-debug and api disabled. Significant speed increase. Alternating between the following in config/params.php especially the first or former option ie. PhpFileSchemaProvider has increased performance significantly since syncing is mainly for building the database. The database is relatively secure so this first option is my preferred choice.
|
I have the same issue ca. 5 sec per Request. but in chrome dev tools i have nearly the same good load results than in yii2-basic-app. (Load finish in ca. 100 ms, DomContentLoaded ca. 65 ms) Tried with env prod , debug false, without bootstrap(), comment out all unnecessary stuff, but always the same bad results. |
That should be something about how |
Hi,
not sure where to ask - so just shortly here:
I did apache bench on yii3 (demo) against yii2 (basic app) and got extremly poor results for yii3:
Using latest version of yii3 dev (composer update), PHP 7.4.1.
bench results here (must have switched to
-n 1
due to extremly slow response):Yii3
Is there anything special to configure for yii3 demo CLI environment .. ?
In HTTP mode yii3 demo works all OK.
As for yii2 results are OK on the same setup:
Yii2
The text was updated successfully, but these errors were encountered: