Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Last active December 15, 2023 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zulhfreelancer/f13b3d7457ef1c27df69dcb43c76fe02 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/f13b3d7457ef1c27df69dcb43c76fe02 to your computer and use it in GitHub Desktop.
How to measure response time using `curl`?

How to measure response time using curl?

Command:

curl -kv -w '\n* Response time: %{time_total}s\n' <IP_OR_URL>

Example:

curl -kv -w '\n* Response time: %{time_total}s\n' https://google.com

Definition of time_total according to the docs:

The total time in seconds, that the full operation lasted. The time will be displayed with millisecond resolution.

References:

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