myplanetdigital/artillery

Name: artillery

Owner: Myplanet

Description: Modern, powerful, easy-to-use load-testing framework. Load-test HTTP, WebSockets, Socket.io and more.

Forked from: shoreditch-ops/artillery

Created: 2016-07-06 17:26:24.0

Updated: 2016-07-07 20:06:35.0

Pushed: 2016-06-29 20:29:15.0

Homepage: https://artillery.io

Size: 341

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Artillery - modern, powerful, easy-to-use load-testing framework

Artillery At A Glance

Artillery has a strong focus on developer happiness & ease of use, and a batteries-included philosophy.

Artillery's goal is to help developers build faster, more resilient and more scalable applications.


Build Status gitter

Use Cases

Quickstart

Install

Artillery is available via npm

$ npm install -g artillery

Run A Quick Test

$ artillery quick -d 30 -r 5 -n 20 http://127.0.0.1:3000/test

This will run a test for 30 seconds, with 5 new virtual users created every second, with each user sending 5 a GET requests to http://127.0.0.1:3000/test.

Run With A More Complex Scenario

$ artillery run hello.json

Where hello.json is your tests script that contains something like:

(NB: test scripts can be written as YAML too)


onfig": {
  "target": "http://127.0.0.1:3000",
  "phases": [
    { "duration": 120, "arrivalRate": 10 }
  ],
  "defaults": {
    "headers": {
      "content-type": "application/json",
      "x-my-service-auth": "987401838271002188298567"
    }
  }

cenarios": [
{
  "flow": [
    { "get": {"url": "/test"}},
    { "think": 1 },
    { "post": {"url": "/test", "json": { "name": "hassy" }}}
  ]
}


This will run a test for 2 minutes, with 10 virtual users created every second, each of which will send a GET and a POST request with a pause of 1 second in between. Each request will include two custom headers (Content-Type and X-My-Service-Auth).

Create A HTML Report

Once the test completes, you can create a graphical report from the JSON stats produced by artillery run with: artillery report <report_xxxxx.json>

These are self-contained HTML files that can be easily shared via email or Dropbox for example.

Learn More

See Artillery docs for docs and examples.

Contributing

Thinking of contributing to Artillery? Awesome! Please have a quick look at the guide.

License

Artillery is open-source software distributed under the terms of the MPL2 license.

MPL 2.0 FAQ


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.