26 ms·
"Peak CPU utilization dropped from about 70% to 12%, almost a 6x improvement." That is substantial, and HHVM should bear to rest some of the claims (trolls) th
by nodesocket 12y ago
"Peak CPU utilization dropped from about 70% to 12%, almost a 6x improvement."
That is substantial, and HHVM should bear to rest some of the claims (trolls) that PHP is not performant.
- reitzensteinm 12y agoThat you can claw back some performance by using a partially conforming alternate language implementation does not prove the "trolls" wrong. Yes, with enough engineering effort you can move mountains, but if performance is critical and you don't have a legacy code base like Facebook does, reaching for the php hammer is insanity. The real reason why performance isn't a big downside with php is that it usually just doesn't matter. If a php implementation can service 100 req/s, and a Java implementation (an ad absurdum) 100,000 req/s, and your site peaks at 5 req/s, either is just fine. In other words, "You're probably not Pintrest".
- thezilch 12y agoPHP performance is/was not a reason to not use it, if there was ever a reason you'd be "insane" to do so. Pinterest runs on a "slower" Python/Django stack, for that matter.
- TazeTSchnitzel 12y ago> That you can claw back some performance by using a partially conforming alternate language implementation does not prove the "trolls" wrong. You're talking as if PHP is slow. It isn't, it's very fast, speed is actually one of its advantages (or was historically, anyway). Its alternatives (Python, Ruby) are sometimes marginally slower. With its next release, it will receive a significant performance boost, and minor versions usually include small but significant performance gains. Yes, it's not as fast as say, C, C++, Java, C#. It doesn't need to be, nor does anyone expect it to be: it's a dynamic language that allows for rapid development. But to talk about it like it's something horribly slow that you'd never use in 2015 is simply wrong. It is competitive.
- debacle 12y agoHHVM is a completely new interpreter, so it has nothing to do with the Zend interpreter's performance. That said, PHP is (and has been) faster than both Ruby and Python and does some things faster than Perl. It shouldn't be expected to compete with Java or Go.