ab-Apache HTTP 服务器基准测试工具

ab是用于对 Apache 超文本传输协议(HTTP)服务器进行基准测试的工具。它旨在使您对当前的 Apache 安装如何执行有一个印象。这尤其向您显示 Apache 安装每秒能够处理多少个请求。

Synopsis

ab [ -A auth-username:password ] [ -b windowsize ] [ -B local-address ] [ -c concurrency ] [ -C cookie-name=value ] [ -d ] [ -e csv-file ] [ -E client-certificate file ] [ -f protocol ] [ -g gnuplot-file ] [ -h ] [ -H custom-header ] [ -i ] [ -k ] [ -l ] [ -m HTTP-method ] [ -n requests ] [ -p POST-file ] [ -P proxy-auth-username:password ] [ -q ] [ -r ] [ -s timeout ] [ -S ] [ -t timelimit ] [ -T content-type ] [ -u PUT-file ] [ -v verbosity] [ -V ] [ -w ] [ -x <table>-attributes ] [ -X proxy[:port] ] [ -y <tr>-attributes ] [ -z <td>-attributes ] [ -Z ciphersuite ] [http[s]://]hostname[:port]/path

Options

Output

以下列表描述了ab返回的值:

Bugs

有各种固定长度的静态声明的缓冲区。结合命令行参数的延迟解析,服务器和其他外部 Importing 的响应 Headers,这可能会给您带来麻烦。

它没有完全实现 HTTP/1.x。仅接受某些“预期”形式的回复。 strstr(3)的大量使用显示在配置文件的顶部,这可能表示性能问题; ,您将衡量ab的性能而不是服务器的性能。

首页