3 ms·
> most of what people do with PHP isn't CPU bound ... cause it's I/O bound? Just curious.
by pastrami_panda 6y ago
> most of what people do with PHP isn't CPU bound
... cause it's I/O bound? Just curious.
- pizlonator 6y agoI feel like I can almost visualize the killshot slides that the HipHop and HHVM folks used to show the extent to which PHP can be CPU bound and the extent to which server idle time can be increased by using speculative compilation tricks on PHP. So, I think it is cpu bound for at least some people.
- tyingq 6y agoVersus PHP5.x that's true. Mostly because the PHP internals were inefficient. The performance differences vs HHVM vanished with PHP 7.x.
- jashmatthews 6y agoHHVM's 2nd generation region based JIT performs enormously better than PHP7.x in places where dynamic languages don't perform so well but PHP7.x has the clear lead when benchmarking large apps like WordPress.
- tyingq 6y agoI get where the "rooting for the underdog" feeling comes from, but it still feels good that the relatively small and underfunded PHP team mostly beat Facebook here. I like to imagine there is some internal debate at FB on whether to just go back to mainline PHP and kill HHVM. Especially with a credible JIT coming.
- tyingq 6y agoYes, or just waiting on MySQL, for example. The JIT does dramatically speed up microbenchmarks like Mandlebrot, etc. 5x.