Check TTFB from Ubuntu terminal
- Bilal Malik
- Feb 19, 2021
- 1 min read
We can print the TTFB multiple times by using the below command in the ubuntu terminal.
for i in {0..3}; do echo -n "$i :: "; curl --resolve 'www.yoursite.com:443:your-ip' --output /dev/null -w "Response Code: %{http_code} :: Size: %{size_download} :: Speed: %{speed_download} :: TTFB: %{time_starttransfer} :: Total: %{time_total}\n" -s --show-error "https://www.yoursite.com"; done

In the above command, {0..3} means it checks TTFB 4 times, If you want to test 10 times, then change to {0..9}
コメント