3 ms·
Just tried it on a Laravel project I'm working on, on Windows. Worked flawlessly. On the downside, no noticeable performance improvements. Report generation ti
by bufferoverflow 6y ago
Just tried it on a Laravel project I'm working on, on Windows. Worked flawlessly. On the downside, no noticeable performance improvements.
Report generation times:
PHP 7.4 = 67ms avg
PHP 8.0 = 66ms avg
This is getting the data from MySQL and massaging it for the templates. With Laravel's insane amount of indirection, of course.
- krick 6y agoWhy would you expect performace improvements? Because of JIT? There's no reason to hope that JIT would help with that much, because it's I/O-bound anyways. And function calls in PHP are pretty efficient.
- bufferoverflow 6y agoPHP 8 performance improvements were advertised https://www.fonow.com/Images/2020/0608/9f3a0f6a4f8f2ee.png https://www.fonow.com/Images/2020/0608/9f3a0f6a4f8f2ee.png https://www.fonow.com/Images/2020/0608/4e9d2337edd2072.png https://www.fonow.com/Images/2020/0608/4e9d2337edd2072.png https://www.fonow.com/Images/2020/0608/70a1c6cff23f4fc.png https://www.fonow.com/Images/2020/0608/70a1c6cff23f4fc.png
- krick 6y agoOh, come on. Did you see the benchmarks? This is CPU-bound code, like multiplying numbers 100 000 times over. This has nothing to do with your typical use case. And, yeah, performance improvements are always advertised.
- rovr138 6y ago>This is CPU-bound code, like multiplying numbers 100 000 times over. This has nothing to do with your typical use case. I think a lot of people missed this. It's not the usual PHP workload for usual/basic web dev.