请求返回后,JMeter计时器会启动吗?如果不是,那么该文档在哪里? [英] Do JMeter Timers Start After Request Returns? If not, where is that in the documentation?

查看:91
本文介绍了请求返回后,JMeter计时器会启动吗?如果不是,那么该文档在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

3.4计时器 中的 JMeter文档不要定义每个计时器的开始和结束:

The JMeter docs in 3.4 Timers do not define the start and end of each timer:

如果您选择在一个线程组中添加多个计时器,JMeter将使用这些计时器的总和,并在执行该计时器所适用的采样器之前暂停该时间.

If you choose to add more than one timer to a Thread Group, JMeter takes the sum of the timers and pauses for that amount of time before executing the samplers to which the timers apply.

在此说明中,不清楚是在触发采样器请求时启动计时器还是在采样器请求返回响应时启动计时器.

用于常量计时器的Apache JMeter文档将常量计时器定义为:

The Apache JMeter docs for Constant Timer defines a Constant Timer to be:

如果您希望每个线程在两次请求之间暂停相同的时间,请使用此计时器.

If you want to have each thread pause for the same amount of time between requests, use this timer.

这也让人对请求之间"的含义含糊不清-是在请求开始之间,还是在一个请求结束与下一个请求开始之间?

在阅读中篇文章 Malith Jayasinghe的作者Malith Jayasinghe将思考时间"用于性能测试 ,将"思考时间"定义为:

...在进行性能测试时,思考时间"起着重要的作用.定义为完成一个请求和开始下一个请求之间的时间.

... "think time" plays an important role when doing performance tests. It is defined as the time between the completion of one request and the start of the next request.

这对于思考时间的定义是令人耳目一新的,但是我找不到任何证据表明JMeter在文档中的工作方式.

This is refreshingly specific as to the definition of think time, but I can't find any substantiation that this is how JMeter works in the docs.

哪里有权威的文档,说明思考时间/等待时间是从发出请求之时开始还是从请求返回之时开始?

推荐答案

作为有关的文档JMeter计时器说:

计时器会导致JMeter在其范围内的每个采样器之前延迟一定的时间.

A timer will cause JMeter to delay a certain amount of time before each sampler which is in its scope.

因此,如果您向采样器添加任何计时器-JMeter将在之前等待启动.
如果您在与采样器组相同的范围中添加计时器-JMeter将等待每个采样器之前指定的时间.

So, if you add any timer to sampler - JMeter will wait before start this sampler.
If you add timer in the same scope with group of samplers - JMeter will wait specified time before each sampler.

另外,请注意:

默认情况下,JMeter线程按顺序执行采样器而不会暂停.

By default, a JMeter thread executes samplers in sequence without pausing.

这篇关于请求返回后,JMeter计时器会启动吗?如果不是,那么该文档在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆