JMeter 延迟与加载时间(采样时间) [英] JMeter latency vs load time(sample time)

查看:50
本文介绍了JMeter 延迟与加载时间(采样时间)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 HTTP 服务器上运行测试,当我将服务器从 localhost(使用笔记本电脑)切换到 AWS EC2 t.micro 服务器时,传输速度非常慢.

I was running a test on my HTTP server and the transfer speed went really slow when I switched the server from localhost(used a laptop) to a AWS EC2 t.micro server.

我想知道使用 JMeter 进行测试时延迟和加载时间(或采样时间)之间的区别.加载时间在查看结果树"中,采样时间在查看结果表"中.

I want to know the difference between latency and load time(or sample time) when testing with JMeter. Load time is in "View results tree", and sample time is in "View results in table".

这是我的问题.

  1. 发送大约 3.5mb 的 zip 文件时,在 localhost 中测试时大约需要 0.5 秒.但是,当我在 EC2 服务器上测试它时,大约需要 6~8 秒.我知道 3.5mb 相当大,但 8 秒是不是太慢了?

  1. When sending a zip file that's about 3.5mb, it takes about 0.5 seconds when tested in localhost. However, when I was testing it on EC2 server, it takes about 6~8 seconds. I know that 3.5mb is quite big, but isn't 8 second too slow?

在我的测试中,JMeter 显示加载时间为 6~8 秒时延迟约为 0.5~1 秒.这两者有什么区别?

During my tests, JMeter shows that the latency is about 0.5~1 second when the load time is 6~8 second. What is the difference between those two?

推荐答案

延迟是发送请求的时间和开始接收响应的时间之间的差值.

Latency is a difference between time when request was sent and time when response has started to be received.

响应时间(=采样时间=加载时间=经过时间)是发送请求的时间与完全收到响应的时间之间的差值.

Response time (= Sample time = Load time = Elapsed time) is a difference between time when request was sent and time when response has been fully received.

所以响应时间总是 >= 延迟.

So Response time always >= latency.

文件越大,响应时间和延迟之间的差异就越大.

The larger file is, the larger difference between response time and latency will be.

这篇关于JMeter 延迟与加载时间(采样时间)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆