标签:
ab
./ab -c 100 -n 10000 http://127.0.0.1/test.jpg
-n 10000 即: 共发送10000个请求
-c 100 即:每次并发100个
ab -n 100000 -c 149 -H keywords:dt -p /root/file/param.conf -T ‘application/x-www-form-urlencoded‘ http://127.0.0.1/test.jpg
-p:包含post请求的参数文件。文件内容类似:sk=1babb55a0b4b4dd2a&apitype=restaurant&p=tJoLaT4mon
-T:content-type 。请求内容类型
n:总请求数
c:并发客户端数
H:自定义消息头
参数说明:-c表示并发数,-t表示时间(秒)
标签:
原文地址:http://www.cnblogs.com/stay-sober/p/4615670.html