Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter latency vs load time(sample time)

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?

like image 538
Jee Seok Yoon Avatar asked Aug 29 '13 12:08

Jee Seok Yoon


People also ask

What is latency in JMeter?

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

What is the difference between latency and response time?

Latency is the duration that a request is waiting to be handled – during which it is latent, awaiting service. Latency measurements are used for diagnostic purposes, for example, latency spikes. Response time is the time between a client sending a request and receiving a response.

What is JMeter connect time and load time?

Load time: total time taken by the request. First req to the final packet. Connect time: Time taken by the request to reach the server. Latency: time taken by request for first response. (

How does JMeter measure response time?

You can browse to results/jmeter-reports/index. html to see the output of the execution including the end user response time (approx. 1.1 second from my local machine) for the search results page to load after the button click.


1 Answers

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.

like image 175
Andrei Botalov Avatar answered Sep 21 '22 13:09

Andrei Botalov