I
I
Ilya Beloborodov2015-11-19 16:21:47
Yii
Ilya Beloborodov, 2015-11-19 16:21:47

PHP7 and Yii. How is the performance there?

An article appeared on Habré, about how the dude transferred all his projects to PHP7. Praises performance, for example, wordpress began to work 2 times faster.
What about Yii? Has anyone done tests?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergeyj, 2015-11-19
@sayber

Does Yii work on PHP7 100%?

M
Maxim Timofeev, 2016-05-18
@webinar

I put it on yii2 2.0.8 on rucentr-ovsky cheap hosting, first I turned on php5.6 then php7. I measured the debug with the panel, so everything is very abstract, but:
from memory it showed on php5.6 - 5.2 mb, on php7 4.8 mb
there is practically no difference in speed, 5 percent in favor of php7
There are no large tables, how to do it - I measure it for now it's just the framework itself with a simple output of 3 posts.
It is worth noting that the connected libraries affect the speed more, and their set is different.
For example, for php7 there is no Imagick, there is only GD, and here the difference will be simply colossal when resizing photos.
I'll drip deeper - I'll unsubscribe, but I don't have much time. I think in any case it is necessary to switch to 7-ku. One way or another, 5.6 will soon be the past.

X
xmoonlight, 2015-11-19
@xmoonlight

[Joke of the day]: PHP7 is something else! And yesterday I changed the server to a more productive one, it became 4 times faster to work on the same version of PHP! I moved on to refactoring the algorithm (later - the code) - I will try to run it on a calculator.
))
But in general - yes: real naked tests are interesting in terms of performance.
www.zend.com/en/resources/php7_infographic
kazanir.github.io/profiling
habrahabr.ru/post/243361
On average, for PHP 7, the increase should be 1.9-2.2 times relative to PHP 5.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question