This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@matzkoh/node-gatling

1.1.0 • Public • Published

CircleCI David npm node License

node-gatling

What is this?

A tool that send huge number of http requests.

How to use

const { Gatling } = require('..');

(async () => {
  const gun = new Gatling('https://example.com/');

  await gun.start(10000).printInfo();

  // WARN: Infinity
  // await gun.start().printInfo();
})();

Also in example/example.js.

$ node example/example.js
sockets: 169
request: 16265
success: 16265
  error: 0
    qps: 1526.00
max qps: 1594.00
  • sockets
    • number of socket connections that is in use
  • request
    • number of requests
  • success
    • number of responses
  • error
    • number of error responses
  • qps
    • current qps (queries per second)
  • max qps
    • max qps in this Gatling

Features

  • Specify http method
    • new Gatling(method, url)
  • Change UA
    • gatling.setUserAgent(ua)
  • Intercept
    • gatling.stop()

Readme

Keywords

Package Sidebar

Install

npm i @matzkoh/node-gatling

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

7.31 kB

Total Files

4

Last publish

Collaborators

  • matzkoh