1
0
mirror of https://github.com/jaygooby/ttfb.sh synced 2025-12-10 16:07:22 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Jay Caines-Gooby
07bfb15adf Silence the locale check 2020-06-29 16:43:51 +01:00
Jay Caines-Gooby
918d0cfd41 Merge branch 'master' of github.com:jaygooby/ttfb.sh 2020-06-26 10:25:00 +01:00
Jay Caines-Gooby
7243614da2 Ensure curl uses period separators for floating point values
`bc` requires these to do calculations; it can't use locale separators
like `,`

https://en.wikipedia.org/wiki/Decimal_separator#Countries_using_decimal_comma
2020-06-26 10:22:53 +01:00
Tommaso Barbugli
880c460fd8 improve portability 2019-06-21 10:22:30 +02:00
Jay Caines-Gooby
92f46ba2af Fallback to http1.1 if http2 isn't supported
Fixes #4. Even though the curl command may show that the `--http2` option is available, the version of libcurl that's been linked against might not support it.

Thanks for the tipoff @moeffju 🎉
2019-05-19 20:47:02 +01:00
Sweepyoface
d55c6df1a0 Fix invalid option for which 2019-04-17 23:44:18 -04:00
Jay Caines-Gooby
a2357a6035 Just output the ttfb value for the basic option
-v option shows response breakdown for single and multiple requests

Also tidied README
2019-04-11 21:28:20 +01:00
Jay Caines-Gooby
392c669092 Ditch the -o option and fix -l so it works with relative or absolute paths 2019-04-11 17:12:01 +01:00
Jay Caines-Gooby
563c16e947 -v verbose mode, -o log directory (unneeded as it turns out)
and the ability to collect the combined headers from a -n call into a single log file.

The -o option isn't needed if the bug with specifying a full-path to a log file is fixed
2019-04-11 16:55:28 +01:00
Jay Caines-Gooby
3da629109f set NUM_REQUESTS 2019-04-10 14:33:29 +01:00
Jay Caines-Gooby
30d3d1305a Sort the array so min & max are correct (doh!)
Also use a median function to correctly get median values
2019-04-10 11:59:04 +01:00
Jay Caines-Gooby
3939bab739 Initial commit 2019-03-26 13:34:11 +00:00