node-meter
v1.0.8
Published
Multi-threaded load tester
Downloads
4
Readme
Node Meter
A 'headless' load tester
Features
- Run multi-threaded tests against URLs and functions
- Easy to configure
- Choose from themes to display statistics, or write your own by listening to events
Basic Usage
NPM
npm install node-meter
Yarn
yarn add node-meter
Basic Usage
/**
* 5 users hitting {your-url} for 60 seconds
* with pause of between 500 and 1000ms between each request
*/
NodeMeter.threads({
threadCount: 5,
minPause: 500,
maxPause: 1000,
})
.fetch(new Request('{your-url}'))
.output(Themes.BASIC)
.stopAfter('60 seconds')
.onStop(() => {
process.exit();
})
.start();