Description
A fixed number of VUs execute as many iterations as possible for a specified amount of time. This executor is equivalent to the global vus and duration options.
Options
In addition to the common configuration options this executor also adds the following options:
Option | Type | Description | Default |
---|---|---|---|
duration(required) | string | Total scenario duration (excluding gracefulStop). | - |
vus | integer | Number of VUs to run concurrently. | 1 |
When to use
Use this executor if you need a specific amount of VUs to run for a certain amount of time.
Example
In this example, we'll run 10 VUs constantly for a duration 45 minutes.
constant-vus.js