515439429 发表于 2015-9-15 12:50:21

HHVM 3.9.1 发布,执行 PHP 代码的虚拟机

WordPress页面耗时(Firebug网络):  Xubuntu14.04(i5-3230M)
  PHP7 20~50 ms (开启ZendOpcache)
  PHP7 100~150ms
  PHP5 200~250ms
  跟本地静态页对比:
  time curl -I http://www.example.com/app/wordpress/readme.html 耗时 0m0.015s
  time curl -I http://www.example.com/app/wordpress/ 耗时 0m0.115s
  time curl -I http://www.example.com/app/wordpress/ 耗时 0m0.035s (开启ZendOpcache)
  PHP7(ZendOpcache)驱动的WordPress的速度接近静态页的速度(0.028s):
  http://static.oschina.net/uploads/space/2015/0729/011656_TwPy_561214.png
  新的zval结构体,opcache缓存,PCRE JIT,这些都能有效提升真实应用的性能.
  等以后把JIT加入到ZendOpcache后,计算能力也得爆表.
  https://github.com/zendtech/php-src/tree/zend-jit/ext/opcache/jit
  
  Xubuntu(i5-3230M)上,简单的time curl WordPress首页测试,PHP7 Beta2比HHVM最新的3.8.1快了32%!
  PHP7和HHVM均进行了热身,PHP7缓存有opcode,HHVM缓存有bytecode(hhbc即hiphop bytecode).
  http://static.oschina.net/uploads/space/2015/0802/154304_lP6z_561214.png
  如果对测试数据存在质疑,欢迎下载我在Ubuntu上编译打包的适用于64位的Linux的PHP7 Beta2 with Swoole以及HHVM-3.7.1自行测试:
  http://my.oschina.net/eechen/blog/411534
  除了解压即用的二进制包,里面还有详细的编译打包步骤.
页: [1]
查看完整版本: HHVM 3.9.1 发布,执行 PHP 代码的虚拟机