1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:22:18 +02:00
tldr/pages/common/loadtest.md
2021-10-10 10:09:20 +01:00

16 lines
485 B
Markdown

# 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 --concurrency {{10}} --rps {{200}} {{https://example.com}}`
- Run with a custom HTTP header:
`loadtest --headers "{{accept:text/plain;text-html}}" {{https://example.com}}`
- Run with a specific HTTP method:
`loadtest --method {{GET}} {{https://example.com}}`