wrk - 一个http压测工具
wrk是一个基于C语言编写的压测工具,支持使用lua脚本配置http请求。
🇨🇳 墙内镜像https://gitee.com/mirrors/wrk
💥 帮助菜单
1wrk: invalid option -- h
2Usage: wrk <options> <url>
3 Options:
4 -c, --connections <N> Connections to keep open
5 -d, --duration <T> Duration of test
6 -t, --threads <N> Number of threads to use
7
8 -s, --script <S> Load Lua script file
9 -H, --header <H> Add header to request
10 --latency Print latency statistics
11 --timeout <T> Socket/request timeout
12 -v, --version Print version details
13
14 Numeric arguments may include a SI unit (1k, 1M, 1G)
15 Time arguments may include a time unit (2s, 2m, 2h)
lua 脚本参考代码仓库scripts目录。