k6
k6 copied to clipboard
refactor: use context.AfterFunc around VU management
What?
Use context.AfterFunc
Why?
This cuts down on the amount of goroutines needed to be up for each VU.
Checklist
- [ ] I have performed a self-review of my code.
- [ ] I have added tests for my changes.
- [ ] I have run linter locally (
make lint
) and all checks pass. - [ ] I have run tests locally (
make tests
) and all tests pass. - [ ] I have commented on my code, particularly in hard-to-understand areas.