1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 23:15:23 +02:00
tldr/pages/common/loadtest.md

17 lines
529 B
Markdown
Raw Normal View History

2021-10-10 14:39:20 +05:30
# 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:
`loadtest {{[-c|--concurrency]}} {{10}} {{[--rps|--requestsPerSecond]}} {{200}} {{https://example.com}}`
2021-10-10 14:39:20 +05:30
- Run with a custom HTTP header:
`loadtest --headers "{{accept:text/plain;text-html}}" {{https://example.com}}`
- Run with a specific HTTP method:
`loadtest {{[-m|--method]}} {{GET}} {{https://example.com}}`