Skip to content

Instantly share code, notes, and snippets.

@bsergean
Last active August 4, 2023 02:29
Show Gist options
  • Save bsergean/f32170785f7c64f22875 to your computer and use it in GitHub Desktop.
Save bsergean/f32170785f7c64f22875 to your computer and use it in GitHub Desktop.
Profiling with curl
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
curl --limit-rate 1M -w "@curl-format.txt" -o /dev/null -s http://localhost:8008/out.json
#
curl --compressed --limit-rate 1M -w "@curl-format.txt" -o /dev/null -s http://localhost:8008/out.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment