1
0
mirror of https://github.com/jaygooby/ttfb.sh synced 2025-12-10 07:57:21 +01:00

Update usage with details on -o option

This commit is contained in:
Jay Caines-Gooby
2022-07-04 19:53:43 +01:00
parent 6efaa32ac8
commit aeb5ad7cda
2 changed files with 4 additions and 1 deletions

View File

@@ -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
View File

@@ -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