Skip to content

Instantly share code, notes, and snippets.

@jottenlips
Last active June 10, 2024 16:14
Show Gist options
  • Save jottenlips/b0503c292c683766e245de7781280fbf to your computer and use it in GitHub Desktop.
Save jottenlips/b0503c292c683766e245de7781280fbf to your computer and use it in GitHub Desktop.
Time a request
curl -w "DNS Lookup Time: %{time_namelookup} \nConnect time: %{time_connect} \nTLS Setup: %{time_appconnect} \nRedirect Time: %{time_redirect} \nTime to first byte: %{time_starttransfer} \nTotal time: %{time_total} \n" $0
@jottenlips
Copy link
Author

λ ~/ sh requesttimer.sh google.com
DNS Lookup Time: 0.065937 
Connect time: 0.097698 
TLS Setup: 0.000000 
Redirect Time: 0.000000 
Time to first byte: 0.190058 
Total time: 0.190097 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment