前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Jmeter系列(44)- 详解 Elapsed time、Latency、Connect Time的含义

Jmeter系列(44)- 详解 Elapsed time、Latency、Connect Time的含义

作者头像
小菠萝测试笔记
发布2020-07-15 09:44:27
1.6K0
发布2020-07-15 09:44:27
举报
文章被收录于专栏:自动化、性能测试

前言

在 Jmeter 中一些专业名词我们是需要提前认知的,如下

  1. Elapsed time
  2. Latency
  3. 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.

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-07-11 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 前言
  • Elapsed time
  • Latency
  • Connect Time
相关产品与服务
SSL 证书
腾讯云 SSL 证书(SSL Certificates)为您提供 SSL 证书的申请、管理、部署等服务,为您提供一站式 HTTPS 解决方案。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档