Add config option `interval`
Closed this issue · 0 comments
GregoryAlbouy commented
Description
We want the user to be able to do some basic load testing on its endpoints.
To achieve this we can provide an interval
options to determine the interval between two requests.
Note that this shouldn't be compatible with concurrency != 1
, so it also require a validation update.
Tasks
- Add
RunnerOptions.Interval
(time.Duration
) toconfig.Config
- Update
configfile
CLI flags parsers accordingly -
UpdateUpdate: perfectly compatible withconfig.Config.Validate
: it must be invalid ifinterval != 0
&&concurrency != 1
concurrency != 1
- Implement the interval in
requester.Requester.Run