|
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的速度接近静态页的速度:
http://static.oschina.net/uploads/space/2015/0729/011656_TwPy_561214.png
Xubuntu(i5-3230M)上,简单的time curl WordPress首页测试,PHP7 Beta2比HHVM最新的3.8.1快了32%!
PHP7和HHVM均进行了热身,PHP7缓存有opcode,HHVM缓存有bytecode(hhbc).
http://static.oschina.net/uploads/space/2015/0802/154304_lP6z_561214.png |
|
|