Re:Facebook releases HHVM, 60 percent faster than its curren...
by nixxle on Tuesday December 13, 2011 @10:03AM
(#3347669)
How easy/hard/logical would it be to implement this for a medium-size website with about 250k monthly visits?
[ Parent
| on HN ]
Re:Facebook releases HHVM, 60 percent faster than its curren...
by leftnode on Tuesday December 13, 2011 @10:08AM
(#3347685)
I don't think it's logical. Stock PHP can easily handle a website with 250k monthly visits. Or, rather, your speedups will most likely come from talking to the database less, doing less IO, that sort of thing. CPU probably isn't your bottleneck now.
Re:Facebook releases HHVM, 60 percent faster than its curren...
by nixxle on Tuesday December 13, 2011 @10:21AM
(#3347726)
Fair enough answer. Thanks! I'll report back when we hit 800m. ^^
Re:Facebook releases HHVM, 60 percent faster than its curren...
by leftnode on Tuesday December 13, 2011 @10:49AM
(#3347827)
The ironic thing about Facebook releasing this is they're (and a handful of other sites) are the only ones that would really benefit from this. I do love that they release it as open source.
At my last company, we handled about 20 million API requests a day through a PHP API. Granted, the request and response were smaller than a standard webpage, but that was using stock PHP (hell it wasn't even custom compiled, it came straight from the Debian packages).
So, you need to hit a pretty huge amount of traffic before something like this makes sense. Of course, it's always neat technology to play with.
Re:Facebook releases HHVM, 60 percent faster than its curren...
by pantaloons on Tuesday December 13, 2011 @01:17PM
(#3348529)
Not everybody using PHP is serving web pages. Zynga use PHP to do server side game simulation, I expect there are a myriad of smaller companies doing CPU intensive tasks in PHP that will welcome these developments.
Re:Facebook releases HHVM, 60 percent faster than its curren...
by carbocation on Tuesday December 13, 2011 @11:11AM
(#3347907)
Surely you used opcode caching?
Re:Facebook releases HHVM, 60 percent faster than its curren...
by rhu86 on Tuesday December 13, 2011 @12:24PM
(#3348272)
Presumably he just installed the php-apc package
Re:Facebook releases HHVM, 60 percent faster than its curren...
by jasonlotito on Tuesday December 13, 2011 @11:50AM
(#3348089)
Even when you hit 800m, you'll be fine. Your performance gains will be outside of PHP via good cache usage, (opcode cacheing as well, but that should go without saying), avoiding hitting the disk or the DB, etc.
Re:Facebook releases HHVM, 60 percent faster than its curren...
by jerf on Tuesday December 13, 2011 @10:23AM
(#3347736)
More details: That's about one hit every ten seconds. While I know that you'll get bursts, you still shouldn't be exceeding 10 hits per second very often. Any web framework can handle that; the reasons why you can't sustain that or can't get good performance out of that are going to be found in your code, not the framework code, and linear speedups probably won't be the difference between "working" and "not working".
Re:Facebook releases HHVM, 60 percent faster than its curren...
by leoedin on Tuesday December 13, 2011 @10:41AM
(#3347792)
Are you finding that your visits are starting to actually make a performance hit on the servers? For that kind of scale, assuming your code isn't doing weird things, the lowest tier Linode VPS or similar should be more than capable of serving the pages.