Originally posted by werfu
View Post
Announcement
Collapse
No announcement yet.
Quick Test: PHP 5.6 Against Facebook's HHVM
Collapse
X
-
-
There is more to a PHP vs HHVM test than a single cli initiated benchmark race to completion. I'm running HHVM over at stopforumspam and without it my site would be on its knees. Its runs as a single thread, uses minimal memory compared to a massive PHP fpm pool, dropped my server load from ~10 to ~4 and in my benchmarks for the next code release, completes a testbed IPv6 validity/subnet and range unit test benchmark in 2 seconds compared to 8 seconds in PHP.
To really get the benefits of HHVM, you need to use it in the role for which it was designed, a FastCGI server, not a cli interface.Last edited by stopforumspam; 30 August 2014, 04:52 AM.
Comment
-
Originally posted by caligula View PostAny idea how a C++ based server would compete against PHP?
Comment
-
Originally posted by caligula View PostAny idea how a C++ based server would compete against PHP?
Comment
-
Originally posted by curaga View PostThe last I tested, CGI could handle 10 to 50 times the load vs PHP (also as CGI). With both using FastCGI, the difference was 10 to 150 times. Standard PHP though and over a year old bench.
Comment
-
Originally posted by stopforumspam View PostThere is more to a PHP vs HHVM test than a single cli initiated benchmark race to completion. I'm running HHVM over at stopforumspam and without it my site would be on its knees. Its runs as a single thread, uses minimal memory compared to a massive PHP fpm pool, dropped my server load from ~10 to ~4 and in my benchmarks for the next code release, completes a testbed IPv6 validity/subnet and range unit test benchmark in 2 seconds compared to 8 seconds in PHP.
To really get the benefits of HHVM, you need to use it in the role for which it was designed, a FastCGI server, not a cli interface.Michael Larabel
https://www.michaellarabel.com/
Comment
-
These benchmarks also show that hhvm isn't so fast as they are selling it to be :
Performance comparison of a wide spectrum of web application frameworks and platforms using community-contributed test implementations.
And there's a project called cpoll_cppsp that wons almost all tests but is far from feature complete to develop web applications. But the idea of it is pretty neat and makes easier writing c++ web applications by easily combining html and code.
From a technical point of view hhvm is better but original PHP is catching up in performance.
Comment
Comment