Jmeter中的吞吐量是如何以秒、分钟和小时计算和显示的?

How Throughput is calculate and display in Sec,Minute and Hours in Jmeter?

我有一个观察,想获得有关吞吐量计算的知识,有时吞吐量以秒显示,有时以分钟显示,有时以小时显示,请任何人提供计算吞吐量的确切答案以及它何时会在 秒、分钟和小时 中显示在 Jmeter 摘要报告

来自 JMeter 文档:

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).

单位时间因吞吐量值而异。

示例:

  1. 10秒内发送了10个请求,则吞吐量为10/10 = 1/sec
  2. 10秒内发送1个请求,则吞吐量为1/10 = 0.1/sec = 6/min(0.1/sec的小数会自动显示在下一个更高的单位时间)

如果你理解的话,就是避免小值(比如,0.1、0.001等)。在这种情况下,更高的单位时间更易于理解,而所有单位时间都是正确的。这是一个可用性问题。

所以,

1/sec = 60/min = 3600/hour = SAME