How Throughput and Response time are related

13,027

Solution 1

TL;DR

No, but yes.

Both aren't related directly, but when increasing Throughput, it will probably affect server response time due to load/stress on server.

If there are timeout errors response time will probably increase.

But for validation or firewall errors - response time will probably decrease.

There's a long explanation in JMeter archive, last is using Disney to demonstrate:

Think of your last trip to disney or your favorite amusement park. Lets define capacity of the ride to be the number of people that can sit on the ride per turn (think roller coaster). Throughput will be the number of people that exit the ride per unit of time. Lets define service time the the amount of time you get to sit on the ride. Lets define response time or latency to be your time queuing for the ride (dead time) plus service time.

Solution 2

All the answers are in JMeter Glossary

Elapsed time. JMeter measures the elapsed time from just before sending the request to just after the last response has been received.

Throughput is calculated as requests/unit of time. The time is calculated from the start of the first sample to the end of the last sample. This includes any intervals between samples, as it is supposed to represent the load on the server. The formula is: Throughput = (number of requests) / (total time).

The relationship is: higher response time - lower throughput and vice versa.

You can use charts like Transactions per Second for throughput and Response Times Over Time for response times to get them plotted on your test timeline and Composite Graph to put them together. This way you will be able to track the trends.

All 3 charts can be installed using JMeter Plugins Manager

Share:
13,027
B.Mishra
Author by

B.Mishra

Updated on June 09, 2022

Comments

  • B.Mishra
    B.Mishra almost 2 years

    I ran a JMeter test for 193 samples where I could see my average response time as 5915ms and Throghput as 1.19832.

    I just want to know how are they exactly related