JMeter 吞吐量计算不正确

JMeter throughput calculation incorrect

我创建了一个调用 HTTP 端点的简单测试,该端点被配置为一次性发送 1000 个请求,如下图所示:

测试用了 75 秒到 运行,这意味着吞吐量应该是每秒 1000/75 = 13.3 个请求,但是摘要报告说它是每秒 4.8 个请求。

为什么?

which means the throughput should be 1000/75 = 13.3 requests

根据 glossary:

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

所以它应该是这样的:4150 / 75 = 55.3,但是假设你有 1000 个线程并且没有循环你应该只有 1000 个结果所以尝试“清除”结果并重新 运行:

还要考虑 运行 你的测试 running JMeter in command-line non-GUI mode 因为 GUI 模式应该用于测试开发和调试,当涉及到测试执行时你不应该使用 JMeter GUI