<h1>Benchmarks. PHP-FPM + OPcache vs HipHop vs Si vs kPHP</h1><div><br></div> Configuration: <li>Intel Dual Core 1.60GHz, 8Gg RAM </li><li>PHP-FPM (PHP 5.5.3) + OPcache </li><li>HipHop VM 2.4.0 (rel) </li><li>As a web north acted nginx/1.4.1 (Ubuntu) <br> <h4>Counting million decimal of Pi</h4> Was equivalent code written in php and C to calculate the number Pi million mark by the formula Bailey — Borueyna — Plaffa. </li><li>PHP-FPM: Server:37.86687 s. Mem: 0.5 Mb </li><li>HHVM: Server:12.00476 s. Mem: 0.19 Mb </li><li>Pure C compiler gcc: 3.9662 s. (php still has room to grow :) <h4>Calculation of PI (100,000,000 iterations)</h4> As kPHP does not work type double, had to make a simpler test. </li><li>PHP 5.5.3: 0m17.935s </li><li>HHVM 0m12.918s </li><li>kPHP 0m2.943s-----</li><li>GCC 0m2.913s <h4>Assistant Game blockhead</h4> </li><li>PHP-FPM: Server:0.04178 s. Mem: 10.75 Mb </li><li>HHVM: Server:0.00742 s. Mem: 0.32 Mb <h4>Page static content</h4> </li><li>PHP-FPM: Server:0.00249 s. Mem: 0.5 Mb </li><li>HHVM: Server:0.00218 s. Mem: 0.17 Mb <br> <small>* Memory was measured after memory_get_peak_usage(1)</small> <br><br> <h1>Issues when migrating from PHP 5.5 on HHVM:</h1> </li><li>\"Bad\" krasheli memcache keys for the entire server. Had to be replaced by md5(key) </li><li>HipHop Warning: Unable to handle compressed values yet (memcache)</li><li>Parameter 1 to function(&amp;$p1) expected to be a reference, value given </li><li>Appeared predefined class map. Had in his code to rename. </li><li>php.ini The default is not connected (You can connect the server.hdf IniFile = /etc/hhvm/php.ini), phpinfo() will plug </li><li>No destructor auto shutdown script </li><li>HipHop Warning: Out of bounds $this-&gt;value[0] == \'-\' , if $this-&gt;value = \'\' </li><li><span style=\"color: rgb(80, 0, 80); font-family: arial, sans-serif; line-height: normal; background-color: rgb(255, 255, 255);\">HipHop Warning: Failed to write session data (user). Please verify that the current setting of session.save_path is correct ()&nbsp;</span><br></li>