原料:apache bench
使用方法:Usage: ab [options] [http[s]://]hostname[:port]/path
从浏览器抓包,获取jsonData以及cookie,记录http请求名称
将jsonData存放于profile文件目录中
在linux下执行:ab -n 10 -c 10 -p "[AP of profile]" -T "application/x-www-form-urlencoded" -H "cookie: [cookie]" [https://]hostname/
备注:
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make at a time
-t timelimit Seconds to max. to spend on benchmarking
This implies -n 50000
-s timeout Seconds to max. wait for each response
Default is 30 seconds
-b windowsize Size of TCP send/receive buffer, in bytes
-B address Address to bind to when making outgoing connections
-p postfile File containing data to POST. Remember also to set -T
-u putfile File containing data to PUT. R