Update README.md

This commit is contained in:
six-ddc 2021-06-27 11:16:36 +08:00
parent 6e6c4523b3
commit 72f49b6b94
1 changed files with 27 additions and 22 deletions

View File

@ -22,7 +22,7 @@ additional performance overhead for benchmarking.
```text ```text
./plow http://127.0.0.1:8080/hello -c 20 ./plow http://127.0.0.1:8080/hello -c 20
Benchmarking http://127.0.0.1:8080/hello using 20 connection(s). Benchmarking http://127.0.0.1:8080/hello using 20 connection(s).
> Real-time charts is listening on http://127.0.0.1:18888/ @ Real-time charts is listening on http://[::]:18888
Summary: Summary:
Elapsed 8.6s Elapsed 8.6s
@ -96,32 +96,37 @@ usage: plow [<flags>] <url>
A high-performance HTTP benchmarking tool with real-time web UI and terminal displaying A high-performance HTTP benchmarking tool with real-time web UI and terminal displaying
Example: Examples:
plow http://127.0.0.1:8080/ -c 20 -n 100000 plow http://127.0.0.1:8080/ -c 20 -n 100000
plow https://httpbin.org/post -c 20 -d 5m --body @file.json -T 'application/json' -m POST plow https://httpbin.org/post -c 20 -d 5m --body @file.json -T 'application/json' -m POST
Flags: Flags:
--help Show context-sensitive help. --help Show context-sensitive help.
-c, --concurrency=1 Number of connections to run concurrently -c, --concurrency=1 Number of connections to run concurrently
-n, --requests=-1 Number of requests to run -n, --requests=-1 Number of requests to run
-d, --duration=DURATION Duration of test, examples: -d 10s -d 3m -d, --duration=DURATION Duration of test, examples: -d 10s -d 3m
-i, --interval=200ms Print snapshot result every interval, use 0 to print once at the end -i, --interval=200ms Print snapshot result every interval, use 0 to print once at the end
--seconds Use seconds as time unit to print --seconds Use seconds as time unit to print
--body=BODY HTTP request body, if start the body with @, the rest should be a filename to read --body=BODY HTTP request body, if start the body with @, the rest should be a filename to read
--stream Specify whether to stream file specified by '--body @file' using chunked encoding or to read into memory --stream Specify whether to stream file specified by '--body @file' using chunked encoding or to read into memory
-m, --method="GET" HTTP method -m, --method="GET" HTTP method
-H, --header=K:V ... Custom HTTP headers -H, --header=K:V ... Custom HTTP headers
--host=HOST Host header --host=HOST Host header
-T, --content=CONTENT Content-Type header -T, --content=CONTENT Content-Type header
--listen=":18888" Listen addr to serve Web UI --cert=CERT Path to the client's TLS Certificate
--link="127.0.0.1:18888" Link addr used for show Web html and request backend server --key=KEY Path to the client's TLS Certificate Private Key
--timeout=DURATION Timeout for each http request -k, --insecure Controls whether a client verifies the server's certificate chain and host name
--dial-timeout=DURATION Timeout for dial addr --listen=":18888" Listen addr to serve Web UI
--req-timeout=DURATION Timeout for full request writing --timeout=DURATION Timeout for each http request
--resp-timeout=DURATION Timeout for full response reading --dial-timeout=DURATION Timeout for dial addr
--socks5=ip:port Socks5 proxy --req-timeout=DURATION Timeout for full request writing
--version Show application version. --resp-timeout=DURATION Timeout for full response reading
--socks5=ip:port Socks5 proxy
--auto-open-browser Specify whether auto open browser to show Web charts
--version Show application version.
Flags default values also read from env PLOW_SOME_FLAG, such as PLOW_TIMEOUT=5s equals to --timeout=5s
Args: Args:
<url> request url <url> request url