|
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
新的zval结构体,opcache缓存,PCRE JIT,这些都能有效提升真实应用的性能.等以后把JIT加入到ZendOpcache后,计算能力也得爆表.
https://github.com/zendtech/php-src/tree/zend-jit/ext/opcache/jit |
|
|