Files
tldr/pages.zh/common/siege.md

28 lines
659 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# siege
> HTTP负载测试和基准测试工具。
> 更多信息:<https://www.joedog.org/siege-manual/>.
- 使用默认设置测试一个URL
`siege {{https://example.com}}`
- 测试URL列表
`siege --file {{path/to/url_list.txt}}`
- 随机顺序测试URL列表模拟互联网流量
`siege --internet --file {{path/to/url_list.txt}}`
- 对URL列表进行基准测试请求之间不等待
`siege --benchmark --file {{path/to/url_list.txt}}`
- 设置并发连接的数量:
`siege --concurrent={{50}} --file {{path/to/url_list.txt}}`
- 设置围攻持续的时间:
`siege --time={{30s}} --file {{path/to/url_list.txt}}`