đź““
Loadium Wiki
  • Welcome to Loadium
  • Getting Started with Loadium
  • Quick Guides
    • Quick Start
    • JMeter Test
    • Locust Test
    • Script Builder
      • Simple HTTP Builder
      • Record&Play
    • Gatling Test
    • WebDriver Test
    • HLS Test
    • Understanding Test Reports
    • Test Execution Fail Reasons
    • File Output
  • ABOUT LOADIUM
    • Features
    • Pricing
    • VUH - Virtual User Hour
  • ACCOUNT
    • Profile & Account
    • Subscription
  • Features
    • Test Report
    • Compare Test
    • Private Location
    • Report PDF Export
  • Test Settings
    • Split CSV
    • Sandbox
    • Multi-Step
    • Geolocation
    • Customize Setup
    • Dedicated IP
    • Send Email
    • DNS Override
    • TPS
    • Network Type
    • Test Scheduling
    • Test Failure Settings
    • JMeter Settings
    • Failure Criteria
    • Flexible Thread Scheduling
  • CONTINUOUS INTEGRATION SUPPORT
    • Azure DevOps Pipeline
    • Jenkins Load Testing with Loadium
  • Integrations
    • Microsoft Teams Integration
    • New Relic Integration
    • AppDynamics Integration
    • TeamCity Integration
  • Jmeter Corner
    • Built-in JMeter Functions
    • How to Install JMeter Plugins
    • Record and Play Load Testing With Jmeter in 5 Steps
    • Websocket with Apache JMeter
    • JMeter Timers
    • Handling Error Messages of JMeter Tests in Loadium
    • Details of Throughput Controller in JMeter (Splitting Threads to Different Requests)
    • How to Add a Varying Number of Parameters in Apache JMeter
    • Local Network Simulation On JMeter
    • Running Load Test with FTP Server
  • Gatling Corner
    • Introduction to Gatling
    • Gatling Recorder
    • Gatling Pros&Cons
  • PUBLIC APIs
    • Get Test Status Service
    • Authentication Service
    • Get Performance Test List Service
    • Start Performance Test Service
Powered by GitBook
On this page
  • Why Do I Need a Timer in JMeter?
  • Timer Types
  • How to Use Timers

Was this helpful?

  1. Jmeter Corner

JMeter Timers

PreviousWebsocket with Apache JMeterNextHandling Error Messages of JMeter Tests in Loadium

Last updated 3 years ago

Was this helpful?

Why Do I Need a Timer in JMeter?

User behavior in depends on many factors. Those factors can be “ramp-up time”, “user count on the system in a specific time interval”, etc. and most of them rely on timing. The time between user actions defines the realism of the scenario. That’s why JMeter offers various Timer for you to use in your performance test projects.

By default, executes all samplers one after another. There is no delay between sampler’s execution. This makes our tests non-realistic because no user goes into a page and clicks to a link, then does another request. A user thinks, reads, writes in a web or mobile app. So all those times are the key characteristic of your scenario. In , this is called “think time”. Testing without a timer can create irregular test results because the simulated requests will come in a different pattern than what is seen in a real-world situation.

Timer Types

In JMeter, there are 9 different Timer types.

  1. Constant Timer

  2. Uniform Random Timer

  3. Precise Throughput Timer

  4. Constant Throughput Timer

  5. Gaussian Random Timer

  6. JRS223 Timer

  7. Poisson Random Timer

  8. Synchronizing Timer

  9. BeanShell Timer

Each timer has its own behavior. Let’s have a look at some major Timers.

Uniform Random Timer: This timer lets your Samplers wait in a specific time interval according to the given values. You should provide two values. First one is the constant delay, the second one is the random delay.

Example

Constant Time: 500ms

Random Delay: 100ms

Our samplers will wait x amount of milliseconds between 400ms and 600ms.

Gaussian Random Timer: It follows a normal or Gaussian distribution method. It provides a delay based on a constant and standard deviation.

How to Use Timers

There are examples that you can look into.

Constant Timer: This is the most basic timer provides. All Samplers will wait a constant time interval according to the value you provided. The thread delay is in milliseconds.

JRS223 Timer and BeanShell Timers: They both require you to write some scripts by using javascript, groovy or scripting language.

We recommend you to use scoping articles that we recently published.

Happy !

If you don't see the answer to your question here, please to let us know! We're always improving our documentation.

load tests
JMeter
performance testing
JMeter
JMeter
BeanShell
Scopes in JMeter
load testing
Getting Started with Loadium
JMeter Test
Pricing
reach out to us