安装ab和xhprof
安装Ab
yum -y install httpd-tools;
ab -v
使用ab
ab -n100 -c10 http://www.baidu.com/
其中-n表示请求数,-c表示并发数
详见:http://www.ha97.com/4617.html
安装xhprof
git clone https://github.com/longxinH/xhprof
cd xhprof/extension/
phpize
./configure --with-php-config=/opt/php-7.0.14/bin/php-config --enable-xhprof
make&&make install
使用xhprof
https://segmentfault.com/a/1190000003509917
http://www.cnblogs.com/siqi/p/3790186.html