“等待时间"有什么区别? VS“连接时间"在Jmeter中? [英] What the difference "latency time" VS "Connect Time" In Jmeter?
问题描述
我是jmeter 3.1用户 我不清楚等待时间"与连接时间"的区别, 实际上,在jmeter官方文件中说:
I am user jmeter 3.1 I am unclear the difference of "Latency time" vs "connected time", In fact, in jmeter official document, it said :
新的连接时间指标
"connectTime"表示建立连接的时间.默认情况下,它不保存为CSV或XML,而是保存为添加到user.properties:
"connectTime " represents the time to establish connection. By default it is not saved to CSV or XML, to have it saved add to user.properties:
jmeter.save.saveservice.connect_time = true
那么,等待时间"是什么意思?
So, what the mean of "latency time"?
推荐答案
连接时间:建立TCP连接所花费的时间(在TCP/IP模型中的TCP层),黑白客户端和服务器使用TCP握手.如果TCP握手成功,则客户端可以发送其他请求(HTTP请求-HTTP层).如果不是,则客户端无法与服务器对话.如果服务器不处于活动状态或忙于响应其他请求,则会发生这种情况.
Connect Time: time taken to establish TCP connection (at TCP layer in TCP/IP model) b/w client and server using TCP Handshake. If TCP Handshake is successful, then the client can send further requests (HTTP request - HTTP layer). If not, the client can't talk to the server. This can happen if the server is not live or busy responding other requests.
等待时间:JMeter测量从发送请求之前到收到第一个响应之后的等待时间. (计算Latency Time
时包含Connect time
)
Latency Time: JMeter measures the latency from just before sending the request to just after the first response has been received. (Connect time
is included while calculating Latency Time
)
经过时间:JMeter测量从发送请求之前到收到最后一个响应之后的经过时间
Elapsed time: JMeter measures the elapsed time from just before sending the request to just after the last response has been received
参考文献:
- https://jmeter.apache.org/usermanual/glossary.html
- http://www.tcpipguide.com/free/t_TCPConnection EstablishmentmentProcessTheThreeWayHandsh-3.htm
- https://jmeter.apache.org/usermanual/glossary.html
- http://www.tcpipguide.com/free/t_TCPConnectionEstablishmentProcessTheThreeWayHandsh-3.htm
这篇关于“等待时间"有什么区别? VS“连接时间"在Jmeter中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!