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

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

问题描述

我在我的HTTP服务器上运行的测试,当我打开从本地主机服务器(使用一台笔记本电脑)到AWS EC2 t.micro服务器的传输速度跑到很慢。

我想知道的延迟和加载时间(或采样时间)之间的差异与JMeter的测试时。加载时间是在查看结果树,并采样时间是在查看结果表。

下面是我的问题。

  1. 在发送一个zip文件,该文件是关于3.5MB,它当本地主机测试大约需要0.5秒。然而,当我在EC2服务器上测试它,大约需要6〜8秒。我知道,3.5MB是相当大的,而不是8秒太慢?

  2. 在我们的测试,JMeter的显示,延迟时间大约为0.5〜1第二次时的加载时间是6〜8秒。这两者之间的区别是什么?

解决方案

延迟是响应时已开始收到时,请求被发送的时间和时间之间的区别。

响应时间(=采样时间=负荷时间=经过时间)是当响应已经完全接收时,请求被发送的时间和时间之间的区别。

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

较大的文件,响应时间和等待时间相差较大会。

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.

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".

Here's my question.

  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?

  2. 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天全站免登陆