How Throughput and Response time are related

↘锁芯ラ 提交于 2019-12-20 03:42:41

问题


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


回答1:


TL;DR

No, but yes.

Both aren't related directly, but when increasing Throughput, it will probably effect 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.




回答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




回答3:


In terms of load/Performance testing. Throughput and Response times are inversely proportional. i.e With increase in response time throughput should decrease. With increase in Throughput response time should decrease.

You can get more detailed definitions in this blog:

https://nirajrules.wordpress.com/2009/09/17/measuring-performance-response-vs-latency-vs-throughput-vs-load-vs-scalability-vs-stress-vs-robustness/




回答4:


Respose Time : It is the time calculated when user send the request till request gets finnished.

Throughput : It is server property that number of transaction or request can be made during certain amount of time. here 1.19832 /minute means server cand hadle 1.19832 sample per minute.

As Respose Time increses Throughput increases.



来源:https://stackoverflow.com/questions/49552745/how-throughput-and-response-time-are-related

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!