Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

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 an 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?

1 Answer

0 votes
by (44.4k points)

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

Response time (= Sample time = Load time = elapsed time) could be a difference between the time when the request was sent and time once a response has been completely received.

So Response time is always greater than or equal to latency.

The larger the file is, the larger the difference between response time and latency are going to be.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...