1.1.0 • Published 6 years ago
@matzkoh/node-gatling v1.1.0
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()