Go版ab压力测试工具

版权声明:转载请注明出处 https://blog.csdn.net/weixin_43420337/article/details/83058254

Go版ab压力测试工具

下载地址

官网

用法

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: 获取百度首页

猜你喜欢

转载自blog.csdn.net/weixin_43420337/article/details/83058254