loadtest
node
TLDR
Run load test
$ loadtest -c [10] -n [1000] [http://example.com/api]
Run with requests per second limit$ loadtest -c [10] --rps [100] [http://example.com/api]
POST request with body$ loadtest -c [5] -P '[{"key":"value"}]' -T 'application/json' [http://example.com/api]
SYNOPSIS
loadtest [options] url
DESCRIPTION
loadtest is a Node.js load testing tool for HTTP APIs. Generates configurable concurrent requests to measure server performance and identify bottlenecks. Reports latency percentiles, throughput, and error rates.
PARAMETERS
-c num
Number of concurrent clients.-n num
Total number of requests.--rps num
Requests per second limit.-t seconds
Maximum run time.-P body
POST request body.-T type
Content-Type header.-H header
Custom header.-k
Keep-alive connections.
