snippetbashTip
loadtest — Run a load test on the selected HTTP or WebSockets URL. More information: <https://github.com/alexfe
Viewed 0 times
thecommandrunloadclitestloadtestselected
Problem
How to use the
loadtest command: Run a load test on the selected HTTP or WebSockets URL. More information: <https://github.com/alexfernandez/loadtest#usage>.Solution
loadtest — Run a load test on the selected HTTP or WebSockets URL. More information: <https://github.com/alexfernandez/loadtest#usage>.Run with concurrent users and a specified amount of requests per second:
loadtest {{[-c|--concurrency]}} {{10}} {{[--rps|--requestsPerSecond]}} {{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 {{[-m|--method]}} {{GET}} {{https://example.com}}Code Snippets
Run with concurrent users and a specified amount of requests per second
loadtest {{[-c|--concurrency]}} {{10}} {{[--rps|--requestsPerSecond]}} {{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 {{[-m|--method]}} {{GET}} {{https://example.com}}Context
tldr-pages: common/loadtest
Revisions (0)
No revisions yet.