Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Last active November 11, 2025 17:49
Show Gist options
  • Select an option

  • Save zulhfreelancer/f13b3d7457ef1c27df69dcb43c76fe02 to your computer and use it in GitHub Desktop.

Select an option

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