如果你想從頭學習Jmeter,可以看看這個系列的文章哦
https://www.cnblogs.com/poloyy/category/1746599.html
前言
在 Jmeter 中一些專業名詞我們是需要提前認知的,如下
- Elapsed time
- Latency
- Connect Time
=======>>>> 點擊右側即可跳轉對應詳解哦
Elapsed time
- 從發送請求到收到最后一個響應,所花費的時間
- 不包括渲染請求所花費的時間,同時也不包括處理客戶端腳本所花費的時間
JMeter measures the elapsed time from just before sending the request to just after the last response has been received. JMeter does not include the time needed to render the response, nor does JMeter process any client code, for example Javascript.
Latency
- 從發送請求到收到第一個響應,所花費的時間
- 該時間包括組裝請求、組裝響應的第一部分所需的處理時間,通常長於一個字節
- Jmeter 的時間應該更接近瀏覽器或其他應用程序客戶端所經歷的時間
- 網上還有種說法,就是響應信息越大,差別越大
JMeter measures the latency from just before sending the request to just after the first response has been received. Thus the time includes all the processing needed to assemble the request as well as assembling the first part of the response, which in general will be longer than one byte. Protocol analysers (such as Wireshark) measure the time when bytes are actually sent/received over the interface. The JMeter time should be closer to that which is experienced by a browser or other application client.
Connect Time
- 建立連接所花費的時間
- 包括SSL三次握手的時間
- 注意:latency 沒有減去 connect time
- 當出現鏈接超時等錯誤,這個會等於鏈接超時時間
JMeter measures the time it took to establish the connection, including SSL handshake. Note that connect time is not automatically subtracted from latency. In case of connection error, the metric will be equal to the time it took to face the error, for example in case of Timeout, it should be equal to connection timeout.