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.
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?
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. 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.
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.
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. (
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With