jmeter 响应时间使用 Response Time over Time

jmeter response times using Response Time over Time

我是 JMeter 的新手(有 5 天的扎实经验!),如果可以的话,我希望得到一些指导。我一直在浏览 jmeter 帮助,我确实搜索(在提交此请求之前)其他响应时间问题,但是我不知道它们是否相关 - 所以如果这是我深表歉意该请求是先前查询的重复。

我的环境: JMeter v2.11 JRE v7 远程 Oracle 12 数据库

我正在对将消息提交到接收组件的系统进行性能测试。

我的要求是系统每小时可以处理 2000 条消息(或 2000/3600 = 0.56 submissions/second)

所以我有一些 beanshell 采样器都准备好设置以注入单个 SOAP/XML 消息来模拟提交。

beanshell 采样器位于线程组对象中,设置如下:

线程数:1 循环次数:2000 开始时间:2015/03/01 13:00:00 结束时间:2015/03/01 14:00:00 持续时间:3600

我正在考虑使用 'Response Times over Time' 插件来验证 0.56/秒的提交速率 - 如果我指定 start/end 次和执行持续时间 [=36] 这是否有意义=] 我的线程组设置?我需要验证 2000 次提交中每一次的响应时间 <=0.56/秒。

谁能告诉我我是否定义了正确的方法,如果没有 - 你能指出正确的方向吗?

非常感谢 - 我感谢任何人可以提供的帮助。

让我们从JMeter Glossary

开始

Elapsed time . JMeter measures the elapsed time from just before sending the request to just after the last response has been received. JMeter does not include the time needed to render the response, nor does JMeter process any client code, for example Javascript.

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

您所说的(每小时 2000 个请求或每秒 0.56 个请求)是吞吐量而不是响应时间,所以我建议:

  1. Constant Throughput Timer - 设置确切的所需负载
  2. Transactions per Second listener - 形象化

关于设置测试持续时间,您可以将 3600 留在那里,开始和结束时间输入更多用于安排而不是测试持续时间。替代选项是 Runtime Controller.