{"id":190566,"date":"2013-08-22T12:11:02","date_gmt":"2013-08-22T08:11:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=190566"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=190566","title":{"rendered":"<span class=\"post_title\">HHVM: \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 Joomla, \u0411\u0438\u0442\u0440\u0438\u043a\u0441 \u0438 WordPress<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u043e HHVM <a href=\"http:\/\/habrahabr.ru\/post\/188056\/\">\u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b\u0438<\/a> \u043d\u0430 \u0425\u0430\u0431\u0440\u0435. \u0412\u043a\u0440\u0430\u0442\u0446\u0435: HHVM \u2014 \u044d\u0442\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u043e\u0442 Facebook, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430 \u0441\u0447\u0435\u0442 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0438 JIT-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c PHP \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u0435\u0449\u0430\u044e\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u043d\u0443\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 PHP 5.4.<\/p>\n<p>  \u042f \u0440\u0435\u0448\u0438\u043b \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c HHVM \u0441 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u043e\u043c \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u043c CMS.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h2>\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>  \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 2 \u044f\u0434\u0440\u0430 Core i5 @ 3,3 \u0413\u0413\u0446, 8 \u0413\u0431 \u041e\u0417\u0423. <br \/>  \u041e\u0421: Ubuntu 12.04 x86_64.<br \/>  PHP: 5.3.10-1ubuntu3.7<br \/>  Nginx: 1.1.19<br \/>  Apache: 2.2.22<br \/>  HHVM: 2.1.0-dev<br \/>  \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0431\u044b\u043b\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u044b \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 memory_limit, \u0432\u043a\u043b\u044e\u0447\u0435\u043d APC. \u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u044e\u043d\u0438\u043d\u0433\u0430 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c.<\/p>\n<p>  HHVM \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432 \u043f\u043e <a href=\"https:\/\/github.com\/facebook\/hiphop-php\/wiki\/Building-and-installing-HHVM-on-Ubuntu-12.04\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a>.<\/p>\n<h2>\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438<\/h2>\n<p>  \u0411\u044b\u043b\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b \u0437\u0430\u043f\u0443\u0449\u0435\u043d 50 \u0440\u0430\u0437: \u043f\u043e 10 \u0440\u0430\u0437 \u0432 PHP CLI, HHVM CLI, Apache+mod_php, nginx+php-fpm, \u0438 nginx+HHVM. \u0421\u0440\u0435\u0434\u043d\u044f\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435. <\/p>\n<table>\n<tr>\n<td>&nbsp;<\/td>\n<td colspan=\"2\">CLI<\/td>\n<td colspan=\"3\">HTTP<\/td>\n<td colspan=\"2\">\u041f\u0440\u0438\u0440\u043e\u0441\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e <\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0435\u0441\u0442<\/td>\n<td>PHP<\/td>\n<td>HHVM<\/td>\n<td>Apache+mod_php<\/td>\n<td>Nginx+php_fpm<\/td>\n<td>Nginx+HHVM<\/td>\n<td>PHP CLI<\/td>\n<td>PHP-FPM<\/td>\n<\/tr>\n<tr>\n<td>asort<\/td>\n<td>42,4<\/td>\n<td>17,9<\/td>\n<td>N\/A<sup>1<\/sup><\/td>\n<td>40,9<\/td>\n<td>18,9<\/td>\n<td><font color=\"#008914\"><b>137,0%<\/b><\/font><\/td>\n<td><font color=\"#008914\"><b>116,7%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>bcmath_factorial<\/td>\n<td>3,4<\/td>\n<td>3,0<\/td>\n<td>3,4<\/td>\n<td>3,4<\/td>\n<td>2,8<\/td>\n<td>13,9%<\/td>\n<td>21,5%<\/td>\n<\/tr>\n<tr>\n<td>curl_multi<\/td>\n<td>8,6<\/td>\n<td>8,4<\/td>\n<td>9,7<\/td>\n<td>9,0<\/td>\n<td>9,7<\/td>\n<td>2,3%<\/td>\n<td>-7,0%<\/td>\n<\/tr>\n<tr>\n<td>domdocument<\/td>\n<td>50,2<\/td>\n<td>51,0<\/td>\n<td>54,3<\/td>\n<td>50,1<\/td>\n<td>50,1<\/td>\n<td>-1,5%<\/td>\n<td>0,0%<\/td>\n<\/tr>\n<tr>\n<td>for<\/td>\n<td>60,5<\/td>\n<td>36,9<\/td>\n<td>60,8<\/td>\n<td>61,0<\/td>\n<td>211,2<\/td>\n<td><font color=\"#008914\"><b>63,7%<\/b><\/font><\/td>\n<td><font color=\"#890014\"><b>-71,1%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>geoip<\/td>\n<td>14,4<\/td>\n<td>15,6<\/td>\n<td>14,7<\/td>\n<td>14,9<\/td>\n<td>5,0<\/td>\n<td>-7,8%<\/td>\n<td><font color=\"#008914\"><b>198,0%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>getid3<\/td>\n<td>46,5<\/td>\n<td>26,9<\/td>\n<td>46,2<\/td>\n<td>45,6<\/td>\n<td>8,5<\/td>\n<td><font color=\"#008914\"><b>72,4%<\/b><\/font><\/td>\n<td><font color=\"#008914\"><b>435,5%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>mb_strings<\/td>\n<td>22,8<\/td>\n<td>16,8<\/td>\n<td>7,0<\/td>\n<td>22,2<\/td>\n<td>17,0<\/td>\n<td><font color=\"#008914\"><b>35,8%<\/b><\/font><\/td>\n<td><font color=\"#008914\"><b>31,0%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>md5<\/td>\n<td>36,8<\/td>\n<td>35,7<\/td>\n<td>37,0<\/td>\n<td>37,2<\/td>\n<td>27,2<\/td>\n<td>3,2%<\/td>\n<td><font color=\"#008914\"><b>36,7%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>preg<\/td>\n<td>11,6<\/td>\n<td>10,9<\/td>\n<td>11,6<\/td>\n<td>11,7<\/td>\n<td>10,9<\/td>\n<td>6,1%<\/td>\n<td>7,9%<\/td>\n<\/tr>\n<tr>\n<td>prime<\/td>\n<td>4,2<\/td>\n<td>5,6<\/td>\n<td>4,2<\/td>\n<td>4,3<\/td>\n<td>2,5<\/td>\n<td>-24,1%<\/td>\n<td><font color=\"#008914\"><b>71,8%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>sort<\/td>\n<td>46,3<\/td>\n<td>17,8<\/td>\n<td>N\/A<sup>1<\/sup><\/td>\n<td>44,1<\/td>\n<td>17,5<\/td>\n<td><font color=\"#008914\"><b>160,1%<\/b><\/font><\/td>\n<td><font color=\"#008914\"><b>151,8%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>sqlite<\/td>\n<td>12,4<\/td>\n<td>10,0<\/td>\n<td>12,6<\/td>\n<td>12,2<\/td>\n<td>15,2<\/td>\n<td>23,7%<\/td>\n<td>-19,9%<\/td>\n<\/tr>\n<tr>\n<td>strings<\/td>\n<td>38,6<\/td>\n<td>37,5<\/td>\n<td>37,8<\/td>\n<td>38,2<\/td>\n<td>36,0<\/td>\n<td>3,0%<\/td>\n<td>6,3%<\/td>\n<\/tr>\n<tr>\n<td>tcp_client<\/td>\n<td>15,4<\/td>\n<td>13,2<\/td>\n<td>15,5<\/td>\n<td>17,3<\/td>\n<td>13,6<\/td>\n<td>16,9%<\/td>\n<td>27,7%<\/td>\n<\/tr>\n<tr>\n<td>tcpdf<\/td>\n<td>3,3<\/td>\n<td>2,4<\/td>\n<td>3,4<\/td>\n<td>4,4<\/td>\n<td>1,4<\/td>\n<td><font color=\"#008914\"><b>38,7%<\/b><\/font><\/td>\n<td><font color=\"#008914\"><b>215,1%<\/b><\/font><\/td>\n<\/tr>\n<tr>\n<td>thumbnail<\/td>\n<td>100,8<\/td>\n<td>94,8<\/td>\n<td>93,7<\/td>\n<td>99,9<\/td>\n<td>94,2<\/td>\n<td>6,3%<\/td>\n<td>6,1%<\/td>\n<\/tr>\n<\/table>\n<p>  <sup>1 \u2014 Apache \u043d\u0435 \u0441\u043c\u043e\u0433 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c asort.php \u0438 sort.php \u2014 \u043f\u0430\u0434\u0430\u043b \u0441 out of memory<\/sup><\/p>\n<p>  <b>asort<\/b> \u2014 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u0442\u0440\u043e\u043a \u0441 10 \u043c\u043b\u043d. \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<br \/>  <b>bcmath_factorial<\/b> \u2014 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b\u0430 \u0447\u0438\u0441\u043b\u0430 1000 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 bcmul<br \/>  <b>curl_multi<\/b> \u2014 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 100 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e 1 \u041c\u0431 \u0432 10 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0438\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442<br \/>  <b>domdocument<\/b> \u2014 \u0440\u0430\u0437\u0431\u043e\u0440 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e XML (122 \u0442\u044b\u0441. \u0442\u0435\u0433\u043e\u0432) \u2014 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u0437\u044f\u043b sitemap ag.ru<br \/>  <b>for<\/b> \u2014 3 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 for \u043f\u043e 1000 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 (\u0432\u0441\u0435\u0433\u043e 1 \u043c\u043b\u0440\u0434.)<br \/>  <b>geoip<\/b> \u2014 100 \u0442\u044b\u0441. \u043f\u043e\u0438\u0441\u043a\u043e\u0432 IP \u043f\u043e \u0431\u0430\u0437\u0435 <a href=\"http:\/\/dev.maxmind.com\/geoip\/geoip2\/geolite2\/\">GeoIP<\/a><br \/>  <b>getid3<\/b> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 ID3 \u0442\u0435\u0433\u043e\u0432 \u0438\u0437 MP3 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <a href=\"http:\/\/getid3.sourceforge.net\/\">getID3()<\/a> \u2014 10 \u0442\u044b\u0441. \u0440\u0430\u0437<br \/>  <b>mb_strings<\/b> \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 mb_strlen, mb_ereg_replace, mb_substr, mb_strpos, mb_strtolower 1000 \u0440\u0430\u0437 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0442\u043e\u043c\u0435 \u00ab\u0412\u043e\u0439\u043d\u044b \u0438 \u043c\u0438\u0440\u0430\u00bb<br \/>  <b>md5<\/b> \u2014 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f md5 \u043e\u0442 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 1 \u0434\u043e 100 \u043c\u043b\u043d<br \/>  <b>preg<\/b> \u2014 \u043f\u043e\u0438\u0441\u043a preg_match_all hex-\u043a\u043e\u0434\u043e\u0432 \u0446\u0432\u0435\u0442\u043e\u0432, \u0442\u0435\u0433\u043e\u0432 \u0438 URL \u043d\u0430 HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u2014 1000 \u0440\u0430\u0437 (\u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u0437\u044f\u0442\u0430 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0425\u0430\u0431\u0440\u0430)<br \/>  <b>prime<\/b> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 2 \u0434\u043e 1 \u043c\u043b\u043d. \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c \u00ab\u0432 \u043b\u043e\u0431\u00bb<br \/>  <b>sort<\/b> \u2014 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u0442\u0440\u043e\u043a 10 \u043c\u043b\u043d. \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u043c\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438<br \/>  <b>sqlite<\/b> \u2014 10 \u0442\u044b\u0441. \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 SELECT \u043a \u0411\u0414 sqlite3<br \/>  <b>strings<\/b> \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 strlen, str_replace, substr, strpos, strtolower 10 \u0442\u044b\u0441. \u0440\u0430\u0437 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u0442\u043e\u043c\u0435 \u00ab\u0412\u043e\u0439\u043d\u044b \u0438 \u043c\u0438\u0440\u0430\u00bb<br \/>  <b>tcp_client<\/b> \u2014 10 \u0442\u044b\u0441. \u043a\u043e\u043d\u0435\u043a\u0442\u043e\u0432 \u043a localhost \u0438 \u0447\u0442\u0435\u043d\u0438\u0435 2 \u041c\u0431 \u043f\u043e TCP (<a href=\"http:\/\/ru.wikipedia.org\/wiki\/CHARGEN\">CHARGEN<\/a>)<br \/>  <b>tcpdf<\/b> \u2014 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0439 PDF \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 <a href=\"http:\/\/www.tcpdf.org\/\">TCPDF<\/a> \u2014 10 \u0440\u0430\u0437 (\u0432\u0437\u044f\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 example_061.php)<br \/>  <b>thumbnail<\/b> \u2014 10 \u0442\u044b\u0441. \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0439 thumbnail \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GD imagecopyresized()<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u0442\u0435\u0441\u0442 \u0441\u043e <b>Smarty<\/b>, \u043d\u043e HHVM \u043d\u0435 \u0441\u043c\u043e\u0433 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u044c.<\/p>\n<h2>\u0418\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432<\/h2>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e. \u041d\u043e \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043a\u043e\u0435-\u043a\u0430\u043a\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<ol>\n<li>\u0412\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u0430 \u0442\u0435\u0441\u0442\u0430 \u043e\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043d\u0430\u043c\u043d\u043e\u0433\u043e \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c.<\/li>\n<li>\u0410\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0434\u0432\u0430: \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0430 mb_string \u043d\u0430 Apache+mod_php \u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 for \u043d\u0430 nginx+HHVM. \u0422\u0435\u0441\u0442\u044b \u044f \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b, \u043d\u043e \u043d\u0435 \u0437\u043d\u0430\u044e, \u0432 \u0447\u0435\u043c \u0434\u0435\u043b\u043e.<\/li>\n<li>\u0427\u0442\u043e \u0432 CLI-\u0432\u0435\u0440\u0441\u0438\u0438, \u0447\u0442\u043e \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043b\u044f \u0432\u0435\u0431 HHVM \u0434\u0430\u0435\u0442 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0435 \u0442\u0435\u0441\u0442\u043e\u0432.<\/li>\n<li>\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 HHVM \u043a\u0430\u043a \u0431\u0435\u043a\u0435\u043d\u0434\u0430 nginx (\u0442.\u0435. \u043d\u0435 \u043a\u0430\u043a CLI) \u0434\u0430\u0435\u0442 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u2014 \u0432\u0438\u0434\u0438\u043c\u043e, \u0437\u0430 \u0441\u0447\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 JIT. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 getid3 \u0438 TCPDF.<\/li>\n<\/ol>\n<h2>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 CMS<\/h2>\n<h3>WordPress<\/h3>\n<p>  \u0422\u043e, \u0447\u0442\u043e WordPress \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 HHVM <a href=\"http:\/\/www.hhvm.com\/blog\/?p=113\">\u0431\u044b\u043b\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435<\/a>. \u041d\u0443\u0436\u043d\u0430 \u043b\u0438\u0448\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u0441\u0442: \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b 100 \u0440\u0430\u0437 \u0432 \u043e\u0434\u0438\u043d \u043f\u043e\u0442\u043e\u043a.<br \/>  nginx+HHVM: 4.498 \u0441<br \/>  Apache+mod_php: 9.997 c<br \/>  Apache+mod_php+APC: 6.567 c<br \/>  nginx+php-fpm+APC: 5.460 \u0441<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0449\u0430\u044e \u0432\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u044b\u043b \u0442\u0435\u0441\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0442\u043a\u043b\u0438\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0430 \u043d\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432. <\/p>\n<h3>\u0411\u0438\u0442\u0440\u0438\u043a\u0441 \u0438 Joomla<\/h3>\n<p>  \u0411\u0438\u0442\u0440\u0438\u043a\u0441 \u0438 Joomla \u043d\u0430 HHVM \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c, \u0432\u044b\u0434\u0430\u0432 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443. \u042f \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e, \u0447\u0442\u043e \u0411\u0438\u0442\u0440\u0438\u043a\u0441 \u043d\u0430\u0434\u0435\u0436\u0434\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0442, \u0442.\u043a. \u0442\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f deprecated \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 mbstring.func_overload.<\/p>\n<p>  \u041e\u0431\u0437\u043e\u0440 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u043f\u043e\u043a\u0430 \u0438\u043c\u0435\u043d\u043d\u043e Worpress \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0434 HHVM. \u0421 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 CMS \u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u043c\u0438 \u0432\u0441\u0435 \u043d\u0435 \u0442\u0430\u043a \u0440\u0430\u0434\u0443\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u043c \u0442\u043e\u043f\u0438\u043a\u0435 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/189960\/\">Symfony2 \u043d\u0435 \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u0430<\/a>.<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0435\u043c, \u043a\u043e\u043c\u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0443 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u0430, \u0441\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043f\u043e\u0434 HHVM?<\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>  1) HHVM \u0434\u0430\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0447\u0435\u0433\u043e-\u043b\u0438\u0431\u043e. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e HHVM \u043d\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<\/p>\n<p>  2) \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0438 CMS \u0441 HHVM \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0435\u043d\u043e. HHVM \u0437\u0430\u0442\u043e\u0447\u0435\u043d\u0430 \u043f\u043e\u0434 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0442\u044c\u0441\u044f, \u0442.\u043a. \u0438 HHVM, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u0447\u043d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435 \u044f\u0437\u044b\u043a \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0437\u0430\u0434\u0430\u0447\u0438\u0442\u044c\u0441\u044f \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0435\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u043f\u043e\u0434 HHVM.<\/p>\n<p>  3) \u041d\u0430 WordPress HHVM \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u044e\u0449\u0438\u0439 \u0440\u043e\u0441\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u2014 \u0432 2 \u0440\u0430\u0437\u0430 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 mod_php.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/190566\/\"> http:\/\/habrahabr.ru\/post\/190566\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u043e HHVM <a href=\"http:\/\/habrahabr.ru\/post\/188056\/\">\u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b\u0438<\/a> \u043d\u0430 \u0425\u0430\u0431\u0440\u0435. \u0412\u043a\u0440\u0430\u0442\u0446\u0435: HHVM \u2014 \u044d\u0442\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u043e\u0442 Facebook, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430 \u0441\u0447\u0435\u0442 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0438 JIT-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c PHP \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u0435\u0449\u0430\u044e\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u043d\u0443\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 PHP 5.4.<\/p>\n<p>  \u042f \u0440\u0435\u0448\u0438\u043b \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c HHVM \u0441 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u043e\u043c \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u0435\u0441\u0442\u0430\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u043c CMS.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-190566","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=190566"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/190566\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=190566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=190566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=190566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}