Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
/ node-gatling Public archive

A tool that send huge number of http requests.

Notifications You must be signed in to change notification settings

matzkoh/node-gatling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI Renovate 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()

About

A tool that send huge number of http requests.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published