Simple tool for load testing an HTTP server that allows for increasing load to be applied over time. This module provides support for collecting various statistics, including requests per second, response time, CPU and memory usage. Resulting statistics can be saved to disk as a JSON file or written to an HTML report with graphs.
To install the command line tool:
npm install http-stats --global
npm install http-stats --save
http-stats --url -n 100 --begin-concurrency 1 --end-concurrency 50 --pids 1234 1235 --report-dir report
Alternatively, all of the configuration can be put into a configuration file:
http-stats --config my-config.json
Example contents of
var httpStats = ;httpStats;
- Add documentation for all supported configuration options
- Integrate support for pm2 to query for process IDs using the pm2-interface module.
- Provide ability to compare differences between statistics gathered at different times (to detect performance decreases/increases)
- Improve tests
- Provide link to sample HTML report from this documentation