I am trying to figure out which timer to use for my loadtests in order to simulate a gradual growth in traffic towards the website. I had a look ad the Gaussian Random Timer:
To delay every user request for random amount of time use Gaussian Random Timer with most of the time intervals happening near a specific value.
and the Poisson random timer:
To pause each and every thread request for random amount of time use Poisson Random Timer with most of the time intervals occurring close a specific value.
taken from this source.
Now I don't really understand what's the difference between the two. They both apply a random delay that is more likely to be close to a specific value. So what am I missing? How to they differ in practice?
As the name suggested, JMeter Poisson Random Timer is used to generate and add the random delay before the execution of a sampler. This timer is based on the Poisson Distribution Function. The delay (think) time is the sum of the Poisson distributed value multiplied by defined lambda value and the offset value.
Gaussian Random Timer element is used to delay each user request for a random period of time. It has a random deviation around the Constant Delay Offset based on Gaussian curve distribution. For Example: Deviation Value: 100 milliseconds.
Solution : Right click on the “Thread Group” and select “Add Think Times to children” option. Jmeter will add think time after each transaction in the script.It will add a “uniform Random Timer” as a child to “Test Action” element. Change the Timer or timer's delay as per your requirement.
The Constant Timer can be used to pause each thread for the same “think time” between requests. The above configuration will add a 5-second delay before the execution of each sampler, which is in the Constant Timer's scope.
The difference is in the algorithm used to generate random values:
Poisson is based on this:
http://en.wikipedia.org/wiki/Poisson_distribution
http://www.johndcook.com/blog/2010/06/14/generating-poisson-random-values/
Gaussian uses :
Both add to Constant Delay Offset the value of a random number generated based on either Poisson or Gaussian.
The difference is in underlying algorythm, check the following links for details
I would also recommend reading A Comprehensive Guide to Using JMeter Timers article for exhaustive information on JMeter timers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With