Curl View response time (RT) for a Web site

Source: Internet
Author: User

1. Curl View Web site RT
Curl-o/dev/null -s-w%{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed _download}"\ n""http://www.taobao.com"  02.0.  014::0.015::0.018::0.019::1516256.00  
2. Parameters of Curl
  • -O: Write the HTML and JS returned by Curl to the garbage collection station [/dev/null]
  • -S: Remove all States
  • Curl-o/dev/NULL-W%{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download}"\ n" "http://www.taobao.com"    Geneva. % Total% Received%xferd Average Speed Time timeGeneva. Dload Upload Total spent04.100 28774    0 28774    0     01145k0--:--:-- --:--:-- --:--:--7550k05.0.014::0.016::0.020::0.025::1173060.000
      • -W: Write the RT in the following format
      • Time_namelookup:dns Resolving the time domain name [www.taobao.com]
      • Time_commect:client and server end time to establish TCP connections
      • Time_starttransfer: A request from the client; the server in the Web responds to the first byte of time
      • Time_total:client sends a request to the Web server to send all the corresponding data time

Speed_download: Next week speed Unit byte/s

3. The above time RT understanding "Unit is the second"

    1. 0.014:dns the time unit of the server parsing www.taobao.com is s
    2. 0.015:client the time that a request is made to C/s to establish TCP, including the time of DNS resolution
    3. 0.018:client the time at which the first byte of a response is emitted, including the previous 2 time
    4. 0.019:client sends a request, to S to send the response data all to the client, and to turn off the connect time
    5. 1516256.00: The speed of data next week
    6. 1. Establish a TCP connection to the time that the server returns the first byte of the client: 0.018s- 0.015s = 0.003s
    7. 2. Server time to send response data to client: 0.019s- 0.018 = 0.01s

Curl View response time (RT) for a Web site

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.