2025-03-14 21:59:59 -06:00
|
|
|
# loadtest
|
|
|
|
|
|
|
|
|
|
> Run a load test on the selected HTTP or WebSockets URL.
|
|
|
|
|
> More information: <https://github.com/alexfernandez/loadtest>.
|
|
|
|
|
|
|
|
|
|
- Run with concurrent users and a specified amount of requests per second:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`loadtest {{[-c|--concurrency]}} {{10}} {{[--rps|--requestsPerSecond]}} {{200}} {{https://example.com}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Run with a custom HTTP header:
|
|
|
|
|
|
|
|
|
|
`loadtest --headers "{{accept:text/plain;text-html}}" {{https://example.com}}`
|
|
|
|
|
|
|
|
|
|
- Run with a specific HTTP method:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`loadtest {{[-m|--method]}} {{GET}} {{https://example.com}}`
|