Skip to content

Instantly share code, notes, and snippets.

@zakkak
Created November 14, 2016 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zakkak/a0980e9d8f7232d6cd8f0ca522ed823f to your computer and use it in GitHub Desktop.
Save zakkak/a0980e9d8f7232d6cd8f0ca522ed823f to your computer and use it in GitHub Desktop.
Curl breakdown
Run `curl -w "@curl-timing.cfg" -o /dev/null -s http://foivos.zakkak.net` where `curl-timing.cfg` contains:
```
\n
DNS lookup : %{time_namelookup}\n
Connect to server (TCP) : %{time_connect}\n
Connect to server (HTTP/S) : %{time_appconnect}\n
Time from start until transfer began: %{time_pretransfer}\n
Time for redirection (if any) : %{time_redirect}\n
Total time before transfer started : %{time_starttransfer}\n
\n
Total time : %{time_total}\n
Size of download (bytes) : %{size_download}\n
Average d/l speed (bytes/s) : %{speed_download}\n
\n
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment