標籤:data connect iat loading 解壓 nec 時間 瀏覽器緩衝 include
這是一個IE的外掛程式,下載可以點這裡。下載後解壓如所示,一共有4個檔案。HttpWatch
Professional是單獨軟體,可以單獨使用;
外掛程式安裝時,只需運行httpwatchpro.exe,通常的安裝過程。然後開啟瀏覽器,就可以看到已經安裝好的外掛程式了;
下面以百度為例來看TimeChart,詳解捕捉到的網頁的詳細各個回應時間
blocked:瀏覽器預先處理時間(例如讀取本機快取的時間)、等待網路連接成功的時間。IE對一個主機名稱最多(例如www.baidu.com)可以同時建立2個網路連接,對於其他的串連將進入排隊等待,直到其他串連完成。一般來說Blocked時間是網頁中對於圖片的下載時間最有意義的一個要素。
我們這裡持續的是時間0.026秒。如果本機快取比較多,那麼這個部分的時間自然佔用大。?
DNS
Lookup:是把主機名稱轉換成IP地址的時間。在這個網頁被訪問的時候,一般DNS只會被解析一次。因為解析一次後,這個主機對應的IP地址將被緩衝在本地。
Connect:表示串連的時間,是建立一個TCP串連到網路伺服器(或代理)。如果一個安全的HTTPS串連則包含SSL的握手時間。保持有效串連,經常用來避免過頻反覆串連網路伺服器。
Send:從HTTP請求開始發送到請求發完的時間,這個時間長短依賴於發送到伺服器的資料的多少。例如,若Send時間很長,是由於用HTTP
POST上傳檔案所花費時間的結果。
Wait:是等待請求發送完到接收到伺服器反饋的時間,相對比較準確的伺服器的處理能力,但是不是絕對等於伺服器回應時間。這個數值包括網路的潛在時間、伺服器的應答過程時間。
例如,我們可以比對,不同網站的Wait的時間,可以相對的瞭解,伺服器的相應時間。?
Receive:從響應的第一個位元組開始,到把響應接收完為止的時間。這個時間主要依賴於文本的大小,也依賴於網路頻寬和是否有使用HTTP壓縮等。
兩個匯總時間:
1)TTFB
(or Time To First
Byte) 從開始發送請求到接收到請求的時間。?
TTFB (or Time To First Byte)
是瀏覽器的初始化到從伺服器接收到的第一個位元組的時間。這個時間段是網路的時間,主要包含了TCP串連的時間、發送請求的時間和從伺服器接收到的第一個位元組。
?TTFB =Connect Send Wait
2)Network與網路相關的HTTP請求時間,匯總時間
Network?=TTFB Receive?
HttpWatch的指標說明:Blocked、Connect、Send、Wait、Receive(轉)
Blocked time includes any pre-processing time (such as cache lookup) and the time spent waiting for a network connection to become available. Internet Explorer will only create a maximum of two concurrent network connections per host name (i.e. www.microsoft.com) and will queue up requests until a network connection is available. Often the Blocked time is the most significant factor in the download time of images embedded in a web page.
閉塞時間,包括所有的過程之前的時間(像,cache對比)和等待網路連結的時間,IE在每個主機名稱(像www.microsoft.com)下最多隻建立兩個當前的網路連接,而且要排隊等待直到這個網路連結可用,通常,閉塞時間影響網頁中圖片載入時間的重要因素。
Connect is the time required to create a TCP connection to the web server (or proxy). If a secure HTTPS connection is being used this time includes the SSL handshake process. Keep-Alive connections are often used to avoid the overhead of repeatedly connecting to the web server.
連線時間,是建立TCP串連到伺服器或者Proxy 伺服器所花費的時間,如果一個包含SSL的安全的HTTPS串連存在,Keep-Alive連結經常被用到,以避免多次重複的串連WEB伺服器。
Send is the time required to send the HTTP request message to the server and will depend on the amount of data that is sent to the server. For example, long Send times will result from uploading files using an HTTP POST
發送,是發送HTTP請求到伺服器的時間,而且這個時間取決與發送請求的資料量的大小,例如,長的發送時間是由於用PSOT方式上傳檔案造成的。
Wait is the idle time spent waiting for a response message from the server. This value includes delays introduced due to network latency and the time required to process the request on the web server.
等待,是花費在等待伺服器響應訊息的空閑時間,這個值包括網路延遲和伺服器處理請求的時間。
Receive is the time taken to read the response message from the server. This value will be depend on the size of the content returned, network bandwidth and whether HTTP compression was used.
接收,是花費在從伺服器讀取響應訊息的時間。這個值可以受到請求訊息內容的大小,網路頻寬和是否使用了HTTP壓縮。
Cache Read is the time taken to read the content from the browser cache during (Cache) or 304 responses.
緩衝讀取,是花費在從瀏覽器緩衝中讀取內容或者304響應的時間。
TTFB (or Time To First Byte) is the duration from the initial network request being initiated by the browser to the first byte being received from the server. It includes TCP connection time, the time to send the request and the time taken to get the first byte of the response message.
TTFB,是最初的網路請求被發起到從伺服器接收到第一個位元組這段時間,它包含了TCP連線時間,發送HTTP請求時間和獲得響應訊息第一個位元組的時間。
Network is the total duration of all network related operations for an HTTP request.
Network,是所有的對一個HTTP請求的相關操作的這段時間。
HttpWatch的時間段捕捉詳解