vegeta-12.1.0-darwin-amd64.tar.gz
3.21 MB
vegeta-12.1.0-freebsd-amd64.tar.gz
3.04 MB
vegeta-12.1.0-linux-amd64.tar.gz
3.04 MB
vegeta-12.1.0-windows-amd64.zip
7.68 MB
下载对应系统压缩包,解压即可使用
GET http://api.timophp.com/v3/course/find
Token: 4c52e35ee00642f48166ae380f90c8bdzZ9B49F2
说明:Token是自定义的header
vegeta attack -targets="target.txt" -rate=300 -duration=60s > "results.bin"
说明:
-rate
指定每秒钟对目标发送的请求数,默认值为:50。
-duration 指定发送请求到目标主机的时长,用 0 表示永久。
-timeout 指定每个请求的超时时间,默认值为 30s。
-workers 指定初始化进程数量,默认值为 10。
cat results.bin | vegeta plot > plot.html
参数文档:https://www.hi-linux.com/posts/4650.html