httpwatch的timechart 解析
從timeChart,我們可以一目了然的看到那些請(qǐng)求花費(fèi)的時(shí)間較長(zhǎng),一般柱狀的長(zhǎng)短表示從請(qǐng)求到接受共花費(fèi)的時(shí)間,我們重點(diǎn)需要優(yōu)化那些柱狀較長(zhǎng)的部分,當(dāng)然我們也可以點(diǎn)擊time列,按請(qǐng)求時(shí)間排到序,直接找出請(qǐng)求時(shí)間最長(zhǎng)的部分。
?????? 針對(duì)每一條柱狀圖,又分為好幾個(gè)部分,用不同顏色表示。這些顏色表示不同的時(shí)間段。舉例說(shuō)明,我們點(diǎn)擊一條明細(xì),在下方會(huì)出現(xiàn)該條請(qǐng)求的所有詳細(xì)信息。我們點(diǎn)擊TimeChart的Tab頁(yè)。
?????? 這是一個(gè)我的博客的請(qǐng)求,分為5部分,依次如下:
?????? 白色:空白時(shí)間。
?????? 紫色:DNS查找。
?????? 黃色:連接時(shí)間。
?????? 綠色:請(qǐng)求發(fā)送時(shí)間,一般這個(gè)最耗時(shí)間。
?????? 紅色:等待時(shí)間,這個(gè)影響因素較多,網(wǎng)絡(luò)、數(shù)據(jù)庫(kù)查詢等等。
?????? 青色:請(qǐng)求接收。
?????? 藍(lán)色:從瀏覽器緩沖中讀取。
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.
閉塞時(shí)間,包括所有的過(guò)程之前的時(shí)間(像,cache對(duì)比)和等待網(wǎng)絡(luò)鏈接的時(shí)間,IE在每個(gè)主機(jī)名(像www.microsoft.com)下最多只創(chuàng)建兩個(gè)當(dāng)前的網(wǎng)絡(luò)連接,而且要排隊(duì)等待直到這個(gè)網(wǎng)絡(luò)鏈接可用,通常,閉塞時(shí)間影響網(wǎng)頁(yè)中圖片加載時(shí)間的重要因素。
DNS Lookup is the time required to resolve a host name into a numeric IP address
DNS解析
?
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.
連接時(shí)間,是創(chuàng)建TCP連接到服務(wù)器或者代理服務(wù)器所花費(fèi)的時(shí)間,如果一個(gè)包含SSL的安全的HTTPS連接存在,Keep-Alive鏈接經(jīng)常被用到,以避免多次重復(fù)的連接WEB服務(wù)器。
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
發(fā)送,是發(fā)送HTTP請(qǐng)求到服務(wù)器的時(shí)間,而且這個(gè)時(shí)間取決與發(fā)送請(qǐng)求的數(shù)據(jù)量的大小,例如,長(zhǎng)的發(fā)送時(shí)間是由于用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.
等待,是花費(fèi)在等待服務(wù)器響應(yīng)消息的空閑時(shí)間,這個(gè)值包括網(wǎng)絡(luò)延遲和服務(wù)器處理請(qǐng)求的時(shí)間。
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.
接收,是花費(fèi)在從服務(wù)器讀取響應(yīng)消息的時(shí)間。這個(gè)值可以收到請(qǐng)求消息內(nèi)容的大小,網(wǎng)絡(luò)帶寬和是否使用了HTTP壓縮。
Cache Read is the time taken to read the content from the browser cache during (Cache) or 304 responses.
緩存讀取,是花費(fèi)在從瀏覽器緩存中讀取內(nèi)容或者304響應(yīng)的時(shí)間。
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,是最初的網(wǎng)絡(luò)請(qǐng)求被發(fā)起到從服務(wù)器接收到第一個(gè)字節(jié)這段時(shí)間,它包含了TCP連接時(shí)間,發(fā)送HTTP請(qǐng)求時(shí)間和獲得響應(yīng)消息第一個(gè)字節(jié)的時(shí)間。
Network is the total duration of all network related operations for an HTTP request.
Network,是所有的對(duì)一個(gè)HTTP請(qǐng)求的相關(guān)操作的這段時(shí)間。
總結(jié)
以上是生活随笔為你收集整理的httpwatch的timechart 解析的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 斗罗大陆魂师对决雷天怎么加点?
- 下一篇: 糖心一套换安琪儿一套 亏吗?