问题描述
我对 193 个样本进行了 JMeter 测试我可以看到我的平均响应时间为 5915 毫秒,吞吐量为 1.19832.
I ran a JMeter test for 193 sampleswhere I could see my average response time as 5915ms and Throghput as 1.19832.
我只是想知道它们到底有什么关系
I just want to know how are they exactly related
推荐答案
TL;DR
不,但是是的.
两者没有直接关系,但在增加吞吐量时,可能会因服务器负载/压力而影响服务器响应时间.
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.
中有很长的解释JMeter存档,最后是用Disney演示:
There's a long explanation in JMeter archive, last is using Disney to demonstrate:
想想您上次去迪士尼或您最喜欢的游乐园.让我们将游乐设施的容量定义为每转一圈可以坐在游乐设施上的人数(想想过山车).吞吐量将是每单位时间退出游乐设施的人数.让我们将服务时间定义为您坐在车上的时间.让我们将响应时间或延迟定义为您的乘车排队时间(死区时间)加上服务时间.
这篇关于吞吐量和响应时间的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!