带head的请求,URL要用单引号,否则会报错
./ab -n 10000 -c 50 -H 'User-Agent: panguso_yace' -H 'Host: open.panguso.com' 'http://10.10.128.11:8080/widget/search/w1?ptn=test'
windows下的压力测试,URL要用双引号,其中包括多个head
D:\piaohailin>ab.exe -n 10000 -c 128 -H "User-Agent: panguso_yace" -H "Host: open.panguso.com" "http://10.10.128.11:8080/widget/search/w1?ptn=test"
post请求
./ab -n 10000 -c 100 -v4 -p /application/search/apache-httpd/bin/tmp/my.txt 'http://api.panguso.com/openapi-ui/hot/1.0/word/hotTopics?apiKey=0cb668f69dc039b203f2559905381111&apiSecret=9b4603cd1ef48d990dfbdbddad092222'
./ab -n 10000 -c 50 -H 'User-Agent: panguso_yace' -H 'Host: open.panguso.com' 'http://10.10.128.11:8080/widget/search/w1?ptn=test'
windows下的压力测试,URL要用双引号,其中包括多个head
D:\piaohailin>ab.exe -n 10000 -c 128 -H "User-Agent: panguso_yace" -H "Host: open.panguso.com" "http://10.10.128.11:8080/widget/search/w1?ptn=test"
post请求
./ab -n 10000 -c 100 -v4 -p /application/search/apache-httpd/bin/tmp/my.txt 'http://api.panguso.com/openapi-ui/hot/1.0/word/hotTopics?apiKey=0cb668f69dc039b203f2559905381111&apiSecret=9b4603cd1ef48d990dfbdbddad092222'