mirror of
https://github.com/jaygooby/ttfb.sh
synced 2025-12-10 16:07:22 +01:00
Update usage with details on -o option
This commit is contained in:
@@ -44,6 +44,7 @@ Usage: ttfb [options] url [url...]
|
|||||||
-d debug
|
-d debug
|
||||||
-l <log file> (infers -d) log response headers. Defaults to ./curl.log
|
-l <log file> (infers -d) log response headers. Defaults to ./curl.log
|
||||||
-n <number> of times to test time to first byte
|
-n <number> of times to test time to first byte
|
||||||
|
-o <option> pass options to curl (e.g. -o "-k" will make curl ignore invalid certificates)
|
||||||
-v verbose output. Show response breakdown (DNS lookup, TLS handshake etc)
|
-v verbose output. Show response breakdown (DNS lookup, TLS handshake etc)
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -168,6 +169,8 @@ on `bc` and `column` commands.
|
|||||||
|
|
||||||
* [x] Show progress when more than one request (`-n 2` etc) option is set
|
* [x] Show progress when more than one request (`-n 2` etc) option is set
|
||||||
|
|
||||||
|
* [x] Allow custom options to be passed to curl (use the `-o` option)
|
||||||
|
|
||||||
* [ ] Sort output by fastest TTFB when multiple URLs are supplied
|
* [ ] Sort output by fastest TTFB when multiple URLs are supplied
|
||||||
|
|
||||||
* [ ] Colour code the `TTFB:` figure in the standard response, according to the speed of the response.
|
* [ ] Colour code the `TTFB:` figure in the standard response, according to the speed of the response.
|
||||||
|
|||||||
2
ttfb
2
ttfb
@@ -92,7 +92,7 @@ median() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_usage() {
|
show_usage() {
|
||||||
echo -e "Usage: ttfb [options] url [url...]\n\t-d debug\n\t-l <log file> (infers -d) log response headers. Defaults to ./curl.log\n\t-n <number> of times to test time to first byte\n\t-v verbose output. Show response breakdown (DNS lookup, TLS handshake etc)" >&2
|
echo -e "Usage: ttfb [options] url [url...]\n\t-d debug\n\t-l <log file> (infers -d) log response headers. Defaults to ./curl.log\n\t-n <number> of times to test time to first byte\n\t-o <option> pass options to curl (e.g. -o \"-k\" will make curl ignore invalid certificates)\n\t-v verbose output. Show response breakdown (DNS lookup, TLS handshake etc)" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# defaults
|
# defaults
|
||||||
|
|||||||
Reference in New Issue
Block a user