logo image

How to measure response time of a website using curl?


I want to measure the response time of a website using a command. Can i do this with a curl command?

1 Answer

3 years ago by

You can measure the response time of a url by running the following curl command

curl -o /dev/null -s -w %{time_total}  https://example.com/

It returns response time in seconds i.e if you see something like 1.234 that means it tool 1 second 234 milliseconds to get the response form that url.

3 years ago by Megamind