Meassure connection time with curl

Get response time with curl:

Total time

curl -o /dev/null -s -w 'Total: %{time_total}s\n' https://www.google.com

Establish connection/time to first byte/total time

curl -o /dev/null -s -w 'Establish Connection: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n' https://www.google.com