VegaLoad cookbook
Short recipes for common jobs. Each one has a goal, a command, and what to
look for. They run against ../sample-app, so you can try
every one:
cd ../sample-app && go run .
Then, in another terminal, run the commands from the examples/scenarios
folder (so that the file names below are found), with vegaload built
(go build ./cmd/vegaload from the repository root).
A released binary does not include the examples folder.
Flags always go before the scenario file: vegaload run -vus 5 file.vl.js.
- Check that an API works
- Find out how many users it can take
- Send a fixed number of requests per second
- Fail the build when the API is too slow
- Stop a long run early when it is going badly
- Check that a change made nothing worse
- Time each stage of a flow
- Give every user different data
- Keep a token out of the reports
- Start from a browser recording
- Start from an OpenAPI spec
- Understand a bad run
- Let an AI agent run the tests
- Check your setup
- Block a slow pull request in GitHub Actions