0.2.0 • Published 5 years ago

tarble v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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.

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago