Iteration Modes Explained

Iteration Modes control the pattern and timing of HTTP requests, offering flexibility to simulate various user behaviors and system loads.

Available Modes

1. D (Duration)

Runs sequential requests for a specified period of time.

Purpose: This configures multiple clients to execute HTTP requests sequentially over a specified duration. Each client begins with a staggered start.

name: DurationTestPlan
rounds:
- name: DurationRound
  numberOfClients: 3
  arrivalDelay: 5000
  iterations:
  - name: DurationModeExample
    mode: D
    duration: 300
    httpRequest:
      url: https://api.example.com/resource
      httpMethod: GET

2. DCB (Duration-Cooldown-Batchsize)

Sends batches of requests with cooldown periods for a specified duration.

Purpose: Each client sends a batch of requests, waits for a cooldown period, then repeats for the total duration.

name: DCBTestPlan
rounds:
- name: DCBRound
  numberOfClients: 2
  arrivalDelay: 5000
  iterations:
  - name: DurationCooldownBatchExample
    mode: DCB
    duration: 300
    batchSize: 100
    coolDownTime: 500
    httpRequest:
      url: https://api.example.com/resource
      httpMethod: GET

3. CRB (Cooldown-Request-Batchsize)

Sends batches of requests with cooldown periods up to a specified number of total requests.

Purpose: Each client sends a batch of requests with cooldown between batches until a total request count is reached.

name: CRBTestPlan
rounds:
- name: CRBRound
  numberOfClients: 2
  arrivalDelay: 5000
  iterations:
  - name: CooldownRequestBatchExample
    mode: CRB
    requestCount: 500
    batchSize: 50
    coolDownTime: 1000
    httpRequest:
      url: https://api.example.com/resource
      httpMethod: GET

4. CB (Cooldown-Batchsize)

Sends batches of requests with cooldown periods until the test is manually stopped.

Purpose: Each client sends requests per batch with cooldown, running indefinitely until cancelled or terminated.

name: CBTestPlan
rounds:
- name: CBRound
  numberOfClients: 2
  arrivalDelay: 5000
  iterations:
  - name: CooldownBatchExample
    mode: CB
    batchSize: 100
    coolDownTime: 500
    httpRequest:
      url: https://api.example.com/resource
      httpMethod: GET

5. R (Request Count)

Sends sequential requests up to a specified number of requests.

Purpose: Each client will send requests sequentially until the request count is reached.

name: RequestCountTestPlan
rounds:
- name: RequestCountRound
  numberOfClients: 2
  arrivalDelay: 5000
  iterations:
  - name: RequestCountExample
    mode: R
    requestCount: 200
    httpRequest:
      url: https://api.example.com/resource
      httpMethod: GET

Mode Comparison

Mode Duration Request Count Batch Size Cooldown
D---
DCB-
CRB-
CB--
R---