How to check server response time using cUrl

If you own a Web server or a VPS and would like to see how quick it is at delivering your website pages and how efficient is it’s response time then you can try the following cUrl command from any other Linux Box and test your results, while this test will give you response time of your own website , you can still compare it with response time of popular websites like and to get an idea of how much you lag behind them ( You can be quicker in response time too , if you have a mighty server !! )

So, just login to your shell and type this

curl -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} n"

change the  to your own URL which you wish to test , and then test it for other popular websites like twitter, mashable or some other not so popular websites and see the difference.



Connect : Time taken by cUrl to connect to the site ( dependent on your client Server’s bandwidth and Network )

Time To First Byte (TTFB) :– Time taken to receive first byte after connect ( How quick your Apache is , lower the value the better )

Total time : The last data is the total time for the site to finish loading. (Largely due to your PHP/ any other server side language performance )

So have fun, testing your Website I will write more about Website optimization and Apache, PHP as I have just shifted to a self managed VPS and I keep on learning new things and new ways to optimize it .

About author
Computer Science Engineer by Education & a Programmer, Entrepreneur , Photographer by hobby & Passion who spends most of his time with his Computer/Mobile or his Camera - a Rebel t2i .
5 total comments on this postSubmit yours
  1. Doing some browsing and noticed your website appears a bit messed up in my K-meleon internet browser. But fortunately hardly anyone uses it any longer but you may want to look into it.

  2. this is really a wonderful opinion and must be appreciable.

  3. For a tech site that presumably would be copy/pasted – using a script to append the “Read more” is really, really annoying.

  4. One of the plugin we use – sharethis had this setting turned on by default I just noticed it and removed it , Thanks Simon for bringing this to my attention !

  5. Very helpful, thank you! One small item: I assume the string should end with “\n” rather than “n”?

Submit your comment

Please enter your name

Your name is required

Please enter a valid email address

An email address is required

Please enter your message

People Found this Page by Searching Any of the Following in Google :

 curl response time,  curl time taken,  check server response time,  curl get response time,  curl time response,  php curl response time,  test server response time,  response time using curl,  check server response,  curl response times

TechStroke © 2014 All Rights Reserved

Powered by WordPress