1.0.8 • Published 1 year ago

node-meter v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago