您的位置:首页 > 编程语言 > Python开发

python 环境下的服务器压力测试工具boom

2015-10-14 13:09 351 查看
安装:pip install boom

Usage: boom [options...]

Options:

  -n  Number of requests to run.

  -c  Number of requests to run concurrently. Total number of requests cannot

      be smaller than the concurency level.

  -q  Rate limit, in seconds (QPS).

  -o  Output type. If none provided, a summary is printed.

      "csv" is the only supported alternative. Dumps the response

      metrics in comma-seperated values format.

  -m  HTTP method, one of GET, POST, PUT, DELETE, HEAD, OPTIONS.

  -h  Custom HTTP headers, name1:value1;name2:value2.

  -t  Timeout in ms.

  -A  HTTP Accept header.

  -d  HTTP request body.

  -T  Content-type, defaults to "text/html".

  -a  Basic authentication, username:password.

  -x  HTTP Proxy address as host:port.

  -allow-insecure       Allow bad/expired TLS/SSL certificates.

  -disable-compression  Disable compression.

  -disable-keepalive    Disable keep-alive, prevents re-use of TCP

                        connections between different HTTP requests.

  -cpus                 Number of used cpu cores.

                        (default for current machine is 2 cores)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: