3

HTTP 负载测试工具-ali

 2 years ago
source link: http://osp.io/archives/7018
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
HTTP 负载测试工具-ali – 开源派

ali一款基于 Go 编写的 HTTP 负载测试开源工具,遵守MIT开源协议。ali可在命令行中实时展示指定 URL 的延迟、速率限制、加载时间、表头信息等内容。

kp_515341.gif@596w_1l.gif

使用:

ali http://host.xz

替代 http://host.xz 为测试网址.之后将模拟攻击。 (rate=50, duration=10s).

ali -h
使用:
  ali [flags] <target URL>

其他:
  -b, --body string                发送 body .
  -c, --connections int            最大空闲连接量(default 10000)
      --debug                      debug 模式.
  -d, --duration duration          发起的时间量,0s无限攻击 (default 10s)
  -H, --header stringArray         发送header.
      --insecure                   跳过TLS验证
      --local-addr string          本机 IP 地址. (default "0.0.0.0")
  -M, --max-body int               Max bytes to capture from response bodies. Give -1 for no limit. (default -1)
  -K, --no-keepalive               不使用HTTP持续连接.
      --query-range duration       显示阶段时间的测试结果 (default 30s)
  -r, --rate int                   每秒的攻击频率 (default 50)
      --redraw-interval duration   空档刷新表格率(default 250ms)
      --resolvers string           自定义DNS 解析; 逗号分隔.
  -t, --timeout duration           超时设置. 设置0s 不超时. (default 30s)
  -v, --version                    显示版本.

举例:
  ali --duration=10m --rate=100 http://host.xz

https://github.com/nakabonne/ali

Generate HTTP load and plot the results in real-time

2,924112 Download ZIP

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK