oakvevaalk 发表于 2016-6-4 08:11:53

PHP 7.0.5 正式发布

http://php.net/distributions/php-7.0.5.tar.bz2  WordPress页面耗时(Firebug网络):
  Xubuntu14.04(i5-3230M)
  PHP720~50 ms (开启ZendOpcache)
  PHP7 100~150ms
  PHP5 200~250ms
  跟本地静态页对比:
  time curl -I http://www.example.com/app/wordpress/ 耗时 0m0.115s
  time curl -I http://www.example.com/app/wordpress/ 耗时 0m0.035s (PHP7开启ZendOpcache)
  time curl -I http://www.example.com/app/wordpress/readme.html 耗时 0m0.015s
  PHP7性能大幅提升,对于I/O密集型为主的Web应用,已经足够高效了.
  比如PHP7(ZendOpcache)驱动的WordPress的速度接近静态页的速度(0.028s):
  http://static.oschina.net/uploads/space/2015/0729/011656_TwPy_561214.png
  改进的zval结构体,opcache缓存,PCRE JIT,这些都能有效提升真实应用的性能.
  等以后把LLVM JIT加入到ZendOpcache后,计算能力也得爆表.
  https://github.com/zendtech/php-src/tree/zend-jit/ext/opcache/jit
  PHP7霸气呀,驱动WordPress都是静态页的速度水准,这性能要逆天,Java危矣!
  
页: [1]
查看完整版本: PHP 7.0.5 正式发布