Speed up your PHP code 10x

preview_player
Показать описание
There's a very good reason to make sure your PHP version is always up to date.
Рекомендации по теме
Комментарии
Автор

Once 8.2 is available, you should check with it. Esp with tam usage. There are big advanced in those areas

keremardicli
Автор

Hi Brent loved the comparison if possible please laso compare with octane

devsun
Автор

Great job, Brent. Believe me, there's a reason for hesitation to adopt new versions! And it is NOT a lack of will or lack of appreciation of the benefits in making the switch. IT'S NOT.
We should not be rolling out new versions without ensuring that all associated or bundled Software are similarly new. For example, a large proportion of PHP Programmers depend on PHPMYADMIN to enable use of PHP and Mysql. They do not have sufficient skills to handle separate PHP & MYSQL installations, & to deal with any incompatibility arising from Mysql!
If there's no updated PHPMYADMIN using the new PHP version and an upgraded Mysql, adoption of the new Version will stagnate!

NedumEze
Автор

Bro could you do a benchmark of Raw PHP vs the PHP frameworks? So, kind of like how raw native PHP will perform against its frameworks like Symphony, Laravel, Phalcon and co. Would appreciate that a lot. Thanx.

gillesashley
Автор

first one was slow because none of the DB queries was cached, run it again at the end

TengizAdamashvili
Автор

Why is it so much slower in 7.1 - 7.3?
If performance was the only reason you could just as well stop at 7.0 according to this benchmark. Besides the new features and syntax, security is of course a major reason as well.

Pekzr
Автор

Hi brent, what tool do you use for benchmarking... i wish we could have something like that while doing test on Laravel.

TheEbencarljo
Автор

8.1 killed phpmailer for me... There is no flat out fix for it without composer, why???

dnxsol
Автор

if you cant jump to 7.4 or 8 stay in 7.0

Nodsaibot
Автор

What tool did you use to send those requests?

jomy-games
Автор

Seems to be horrifically slow for all versions. Is this just Wordpress? I did a superficial test just comparing hello world endpoints against, laravel, laravel octane, Symfony, Golang stdlib, Java Quarkus with the deault reactive endpoints, Java Vertx and Java ActiveJ (an exceedingly fast framework from the ad serving world) a while ago. Laravel is around 300rq/s, Octane 3000 rq/s, Symfony 900 rq/s, GoLang 80, 000 Quarkus 120, 000 rq/s, Vertx 130, 000 rq/s, ActiveJ 135, 000 req/s. Not real world tests and Laravel uses a DB by default - I think. I think I also did plain Swoole and that was also about 120, 000 req/sec. It seems that the PHP worker model while improving performance for PHP cannot match threaded reactive of other modern solutions.

Ffaarg