WordPress 4.4 Beta 4 发布
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/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性能大幅提升,对于I/O密集型为主的Web应用,已经足够高效了.
比如PHP7(ZendOpcache)驱动的WordPress的速度接近静态页的速度(0.028s):
http://static.oschina.net/uploads/space/2015/0729/011656_TwPy_561214.png
改进的zval结构体,opcache缓存,PCRE JIT,这些都能有效提升真实应用的性能.
如果对测试数据存在质疑,欢迎下载我在Ubuntu上打包的适用于64位的Linux的PHP7 Beta2 with Swoole和HHVM 3.8.1自行测试:
http://my.oschina.net/eechen/blog/411534
除了解压即用的二进制包,里面还有详细的打包步骤.
页:
[1]