Skip to content

Instantly share code, notes, and snippets.

@b4tman
Created September 13, 2024 06:34
Show Gist options
  • Save b4tman/57760b75516c7263353992453e4d55a9 to your computer and use it in GitHub Desktop.
Save b4tman/57760b75516c7263353992453e4d55a9 to your computer and use it in GitHub Desktop.
measure curl request/response
time_namelookup: %{time_namelookup}s\n time_connect: %{time_connect}s\n time_appconnect: %{time_appconnect}s\n time_pretransfer: %{time_pretransfer}s\n time_redirect: %{time_redirect}s\n time_starttransfer: %{time_starttransfer}s\n ----------\n time_total: %{time_total}s\n
@b4tman
Copy link
Author

b4tman commented Sep 13, 2024

from: https://stackoverflow.com/questions/18215389/how-do-i-measure-request-and-response-times-at-once-using-curl

 curl -w "@curl-format.txt" -o /dev/null -s "https://gitea.b4tman.ru/b4tman"
 curl -w "@curl-format.txt" -o NUL -s "https://gitea.b4tman.ru/b4tman"

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