> git clone https://github.com/wg/wrk > cd wrk > make > ln -s ./wrk /usr/bin/wrk
wrk参数:
-c, --connections(连接数): total number of HTTP connections to keep open with each thread handling N = connections/threads -d, --duration(测试持续时间): duration of the test, e.g. 2s, 2m, 2h -t, --threads(线程): total number of threads to use -s, --script(脚本): LuaJIT script, see SCRIPTING -H, --header(头信息): HTTP header to add to request, e.g. "User-Agent: wrk" --latency(响应信息): print detailed latency statistics --timeout(超时时间): record a timeout if a response is not received within this amount of time. -v, --version(版本信息) Print version details