0.0.4 • Published 7 years ago

anfordern v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ANDFORDERN

A tool to stress test http/https protocols

USING

To use this, you must first create a new object and call a method. Suggest using the flag --max_old_space_size=<size> to increase the amount of ram your APP can use.

Creating
const Anfordern = require('anfordern');

let anfordern = new Anfordern({
    url: "your URL",   // must be a string with a valid protocol
    timer: 1000, // must be a number in ms
    headers: { key: "value" }
});
Methods
MethodArgumentsreturnsDescription
.start()function(err, data)err if an error occurs data what the server sends backStarts sending requests at set interval
.cluster()function(err, pid, data)err if an error occurs pid the process id of our worker data what the server sends backClusters the app and send more than one request at each interval

Example

const Anfordern = require('anfordern');

let anfordern = new Anfordern({
    url: process.env.URL,
    timer: 1000
});

anfordern.cluster(function(err, pid, data) {
    if(err) console.log(pid, err);
    console.log(data);
})
DISCLAIMER:

Do not use this tool for anything that might be considered questionable. I am not responsible for how this tool is used. Use this only on your own hardware.

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago