jaygooby / ttfb.sh

Measures time-to-first-byte in seconds, for single or multiple URLs. Can calculate fastest, slowest & median TTFB values, and optionally log all response headers. Uses curl and the calculation `%{time_starttransfer} - %{time_appconnect}` which doesn't include any connection overhead, to better approximate devtool’s TTFB figure.
MIT License
245 stars 40 forks source link

Add leading 0 when values are sub-second? #18

Open jaygooby opened 2 years ago

jaygooby commented 2 years ago

A the moment we show values like .039445 - these should probably be 0.039445