tarble
v0.2.0
Published
exec vegeta from nodejs
Downloads
2
Readme
tarble
Tarble is a younger brother of Vegeta. Exec vegeta commands from nodejs.
vegeta?
vegeta is an awesome load testing tool developed in Go. tarble
is a wrapper to exec vegeta
command from node.js. You have to install vegeta
appropriately before use tarble
.
usage
prerequisite
See here to install vegeta
.
quick start
import {Vegeta} from "tarble";
const vegeta = new Vegeta();
const {stdout, stderr} = await vegeta
.attack({
attack: {
format: "json",
duration: "5s",
rate: "100/s"
},
targetList: [
{
url: "http://localhost:3000"
}
]
})
.encode()
.report({
report: {
type: "json"
}
})
.exec();
API doc
API doc is available on here.