Get response time with curl

 

To get response time of website/url with curl use following command:

$ curl -o /dev/null -s -w %{time_total}\\n  http://www.google.com

Output:

0.889

We can also use following command to get different types of times with curl:
$ curl -o /dev/null -s -w {time_connect}:%{time_starttransfer}:%{time_total}\\n  http://www.google.com
Output:

0.501:0.867:0.867

Above commands will written the output in seconds.

-Sany

3 comments on “Get response time with curl

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s