Alexander Makarov
Alexander Makarov
Do you mean `suggest` section of `composer.json` or readme?
> Is there anything special to configure for yii3 demo CLI environment .. ? > In HTTP mode yii3 demo works all OK. What do you mean by "HTTP mode"...
@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.
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.
Interesting results, @terabytesoftw. Have you turned off YII_DEBUG in Yii 2?
Then, despite not optimizing Yii 3 yet, it gives 266 rps vs 227 rps with Yii 2. That's unexpected but exciting.
Good start. Do you want it merged first or do you want to continue in this pull request?
@Mister-42 approach is alright. That should be added to yiisoft/docs.