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,7 +96,7 @@ 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
@ -114,15 +114,20 @@ Flags:
-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
--cert=CERT Path to the client's TLS Certificate
--key=KEY Path to the client's TLS Certificate Private Key
-k, --insecure Controls whether a client verifies the server's certificate chain and host name
--listen=":18888" Listen addr to serve Web UI --listen=":18888" Listen addr to serve Web UI
--link="127.0.0.1:18888" Link addr used for show Web html and request backend server
--timeout=DURATION Timeout for each http request --timeout=DURATION Timeout for each http request
--dial-timeout=DURATION Timeout for dial addr --dial-timeout=DURATION Timeout for dial addr
--req-timeout=DURATION Timeout for full request writing --req-timeout=DURATION Timeout for full request writing
--resp-timeout=DURATION Timeout for full response reading --resp-timeout=DURATION Timeout for full response reading
--socks5=ip:port Socks5 proxy --socks5=ip:port Socks5 proxy
--auto-open-browser Specify whether auto open browser to show Web charts
--version Show application version. --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
``` ```