官网
NAME:
压力测试 - 接口压力测试
USAGE:
boom [global options] command [command options] [arguments...]
VERSION:
1.0.0
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--file value, -f value 配置文件路径 (default: "testing.yml")
--qps value, -q value 每秒请求次数 (default: 50)
--number value, -n value 请求总数 (default: 200)
--count value, -c value 并发数 (default: 200)
--time value, -t value 持续时间,设置这个值时请求总数失效 (default: 0s)
--timeout value 超时时间 (default: 10)
--help, -h show help
--version, -v print the version
globalheaders:
- key: Authorization
value: Bearer token
scene:
- name: 场景1
urls:
- url: http://127.0.0.1:8000/post/test
method: POST
data: test=123
name: 测试post
headers:
- key: Content-Type
value: application/x-www-form-urlencoded
- url: https://www.baidu.com
method: GET
name: 获取百度首页