1.0.8 • Published 18 days ago

node-meter v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
18 days ago

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();

More documentation to come...

1.0.8

18 days ago

1.0.7

18 days ago

1.0.6

19 days ago

1.0.5

19 days ago

1.0.3

19 days ago

1.0.2

19 days ago

1.0.1

19 days ago

1.0.0

19 days ago