News for hackers. Stuff that matters.
Re:PHP 8 by lgeorget on Thursday November 26, 2020 @11:47AM (#25221492)
I wonder what makes the Symfony Demo App not being faster with the JIT compiler (as shown on https://www.php.net/releases/8.0/en.php and https://susi.dev/php8-benchmark-jit-symfony).

Maybe because Symfony already caches things very efficiently/cleverly with OPCache?

Re:PHP 8 by mgkimsal on Thursday November 26, 2020 @12:05PM (#25221724)
The article you link to already explains it... ?

> The point is, if you look in the announcements and comments about what the JIT does you can pretty much guess why this is kind of the expected result. The JIT compiler improves performance for CPU-intensive work (for example calculating Mandelbrots) but not so much for the "default" kind of applications. We usually don't do all that many calculations.

Re:PHP 8 by lgeorget on Friday November 27, 2020 @02:51AM (#25226406)
Yes, I read that, but that's not really what I ask. What makes JIT improve performance only for CPU-intensive work? I don't understand the connection there.
Re:PHP 8 by dante_dev on Thursday November 26, 2020 @11:51AM (#25221550)
Mostly because only cpu-intensive code greatly benefits from JIT. Serving a blog (like the demo) is not much cpu-intensive.
Re:PHP 8 by jashmatthews on Thursday November 26, 2020 @04:40PM (#25223719)
OO heavy code and functional heavy code can also benefit greatly from JIT compilation. The PHP8 JIT just doesn't have these optimizations yet.