5 ms·
Copied from /r/php (care of http://www.hhvm.rocks http://www.hhvm.rocks): dev@aerilon ~/dev $ php --version PHP 5.5.20-pl0-gentoo (cli) (built: Dec 22
by debacle 12y ago
Copied from /r/php (care of http://www.hhvm.rocks http://www.hhvm.rocks):
dev@aerilon ~/dev $ php --version
PHP 5.5.20-pl0-gentoo (cli) (built: Dec 22 2014 13:44:21)
dev@aerilon ~/dev $ hhvm --version
HipHop VM 3.5.0-dev (rel)
dev@aerilon ~/dev $ php memusage.php
13.97 MBs [14649088 bytes]
dev@aerilon ~/dev $ hhvm memusage.php
2 MBs [2097152 bytes]
So basically this implementation still uses 100% more RAM (hhvm is 64bit) by default compared to the current production version of HHVM.
Great job, PHP internals team...
- jtreminio 12y agoDid you miss the multiple times PHP 7 was referenced? The code you pasted shows PHP 5.5.20-pl0-gentoo
- debacle 12y agoDid you not read what I pasted? HHVM is using 2MB of RAM. PHP 7 is using 4MB of RAM for the same array. How much more is 4MB compared to 2MB? The answer, you'll find, is very close to 100%.
- smsm42 12y agoThe funny thing 5.5 isn't even the current stable version of PHP, which is 5.6. Let alone the whole post is about PHP 7. It's like you're not even paying attention, just doing the whole post for the last phrase.
- debacle 12y agoI'm not sure if you know how to read: dev@aerilon ~/dev $ hhvm memusage.php 2 MBs [2097152 bytes] That is using the same benchmark that nikic is using, and it's using half the RAM of her PHP 7 example. Please try and be less apologistic and use some reading comprehension. It makes you look more intelligent and puts less stress on other people to accommodate your intellectual laziness.
- smsm42 12y agoThere's no such word as "apologistic" (really, look in the worduary, which should be available in your local bookery). And the result shows PHP 7 reduced memory usage by hashtables threefold since 5.5. Yes, this is pretty good. No reason to be bitter or sarcastic.
- locusm 12y agoLOL My 11 & 8 yr old thought that was pretty funny too...