Skip to content

Instantly share code, notes, and snippets.

@nordineb
Created October 9, 2017 09:07
Show Gist options
  • Save nordineb/b6697686c77918d2b9729126636fb26c to your computer and use it in GitHub Desktop.
Save nordineb/b6697686c77918d2b9729126636fb26c to your computer and use it in GitHub Desktop.
cURL custom formatted output for timing of requests
\n
Timing information\n
==================\n
*time_appconnect The time it took from the start until the SSL/SSH/etc connect/handshake to the remote host was completed.\n
*time_connect The time it took from the start until the TCP connect to the remote host (or proxy) was completed.\n
*time_namelookup The time it took from the start until the name resolving was completed.\n
*time_pretransfer The time it took from the start until the file transfer was just about to begin.\n
*time_redirect The time it took for all redirection steps including name lookup, connect, pretransfer and transfer.\n
*time_starttransfer The time it took from the start until the first byte was just about to be transferred.\n
*time_total The total time that the full operation last\n
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
--------------------------------------------\n
time_total: %{time_total}\n
@nordineb
Copy link
Author

nordineb commented Oct 9, 2017

Usage for timing Azure Table Storage Requests

curl -w "@curl-format.txt" -o /dev/null -H "Accept: application/json;odata=nometadata"\
 -H "x-ms-version: 2015-12-11"\
 "https://mystorage.table.core.windows.net:443/test(PartitionKey='bacdba24-e2dd-4b8a-9c06-d6a7e89e902e',RowKey='e867e10b-0898-497a-be26-86726b1a6876')?INSERT-SAS-TOKEN-HERE"

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