Monday, February 22, 2016

Using Uniform Random Timer Every Minute A Constant/Random Timer

| Monday, February 22, 2016
We already learnt almost what is almost uniform random timer as well as how to hold out it inward your software charge try innovation inward my before posts. As yous know, uniform random timer has parameters called constant delay offset as well as Random delay maximum. So if yous volition laid exclusively constant delay offset as well as run your software charge try thus it volition acquit every bit constant timer. Let's run across amongst example.

Note : There is already stand upward solitary CONSTANT TIMER inward apache Jmeter. This instance is exclusively for your cognition enhancement. Interviewer tin inquire such questions.

Scenario : I accept software charge try amongst iv requests as well as i wants to utilise constant delay of iii seconds exclusively on all iv requests using uniform random timer.

In this case, I volition laid constant delay offset of 3000 milliseconds inward my uniform random timer every bit shown inward bellow image.


Now if yous volition run software charge try using inward a higher house configuration, It volition piece of job every bit a constant timer as well as utilise iii seconds fixed delay. Result volition looks similar bellow.


You tin run across that all the requests are delayed yesteryear nearest iii seconds. Calculation of adjacent asking to commencement execution volition plant every bit -> Start fourth dimension of sample two = commencement fourth dimension of sample ane + Sample fourth dimension of sample ane + Fixed delay(3000 ms). So Start fourth dimension of sample two = 06:56:10.598 + 1.147 + 3.000 = 14.745.

This agency yous tin hold out uniform random timer every bit constant timer inward your software charge try plan.

Related Posts