JMeter Timers
JMeter Timers
Timers introduce delays between requests to simulate realistic user behavior and avoid overwhelming the server. By default, a JMeter thread sends requests without pausing between each request.
JMeter thread executes samplers in sequence without pausing. If we don’t specify a delay by adding any of the available timers to the Thread Group, the target Server will receive too many requests in a very short amount of time which may lead to server overload. It is recommend that to specify a delay by adding one of the available timers to the Thread Group. These timers will cause JMeter to delay a certain amount of time before each request that a thread makes.
Types of timers
Following timers are available in JMeter:
- Constant Timer: Adds a fixed delay between requests.
- Gaussian Random Timer: Introduces a random delay based on a Gaussian distribution.
- Uniform Random Timer: Adds a delay that varies between a minimum and maximum value.
- Constant Throughput Timer
- Synchronizing Timer
- BeanShell Time
- Poisson Random Time
Timer is mainly used to define the time period that you want to wait between each requests. The goal of timers is to simulate real user behavior by waiting between the interactions with a web application as the whole idea of the load testing is simulating real user’s behavior.