通过https://github.com/wg/wrk.git下载并安装
wrk用法,需在wrk目录下执行
./wrk --latency -t8 -c100 -d10s http://192.168.0.184:30001/gwmanager
--latency:显示延时分布
-t:启动线程数,一般为cpu核*2,可以根据IO或cpu密集型进行调整
-c: 并发数,平分到每个线程中,熟练不能大于可以用TCP端口数
-d: 持续请求时间
Running 10s test @ http://192.168.0.184:30001/gwmanager
8 threads and 100 c