How to Check Server Response Time using cURL command line?


Open any linux command line shell, and type in the following and hit return (remember to substitute the domain URL).

1
curl -o /dev/null -s -w %{time_total}\\n  http://helloacm.com
curl -o /dev/null -s -w %{time_total}\\n  //helloacm.com

Example response:

1
0.028
0.028

It means the currently the server takes 0.028 second to responses to any requests. This is useful to check if you need to increase the timeout for your own APIs. For example, some bots have a 2 second timeout.

If you keep experiencing long response time (more than 1 second), then it is time to optimize your server or upgrade your server hardware. Shorter response time, better server performance. If you have long response time, it might be due to a large number of requests at a time.. e.g. D-DOS attacks.

cURL for windows can be downloaded here.

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
222 words
Last Post: How to Static Link VC Runtime in Visual C++?
Next Post: What are the user-agent for Cloudflare?

The Permanent URL is: How to Check Server Response Time using cURL command line?

One Response

  1. Prodis

Leave a Reply