Giter Site home page Giter Site logo

nwhitmont / artillery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artilleryio/artillery

0.0 1.0 0.0 301 KB

Load testing for HTTP, Socket.io and WebSockets. Make your systems indestructible! ๐Ÿ‘Š๐Ÿผ

Home Page: https://artillery.io

License: Mozilla Public License 2.0

Makefile 0.13% JavaScript 68.38% HTML 22.56% Shell 8.93%

artillery's Introduction

Artillery is a modern, powerful, easy-to-use load-testing toolkit.

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.

Features

  • Mulitple protocols: Load-test HTTP, WebSocket and Socket.io applications
  • Scenarios: Specify scenarios to test multi-step interactions in your API or web app
  • Perfomance metrics: get detailed performance metrics (latency, requests per second, concurrency, throughput)
  • Scriptable: write custom logic in JS to do pretty much anything
  • High performance: generate serious load on modest hardware
  • Integrations: statsd support out of the box for real-time reporting (integrate with Datadog, Librato, InfluxDB etc)
  • Extensible: custom reporting plugins, custom protocol engines etc
  • and more! HTML reports, nice CLI, parameterization with CSV files

Build Status gitter

Use Cases

  • Peak traffic testing - ensure your e-commerce backend, IoT service or web API can handle max traffic
  • Pre-launch load testing - for new websites, mobile app backends, web APIs etc
  • Continuous performance testing for new microservices as they are being built
  • Preventing performance regressions - stop performance regressions due to new code or config changes before they are shipped to users
  • Help profile & debug common issues such as extensive GC pauses, memory leaks, improperly configured resource pools etc

There's a lot of fun to be had with a good load generator like Artillery.

Quickstart

Install

Artillery is available via npm

$ npm install -g artillery

Node.js v4+ is required (Node.js 6 is recommended).

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 20 a GET requests to http://127.0.0.1:3000/test.

Run With A Scenario

Artillery's power lies in emulating complex behavior, like that of users of an e-commerce website, a transactional API etc.

Run a scenario with:

$ artillery run hello.yaml

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

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

config:
  target: "http://127.0.0.1:3000"
  phases:
    - duration: 120
      arrivalRate: 10
  defaults:
    headers:
      content-type: "application/json"
      x-my-service-auth: fedcba9876543210
scenarios:
  - 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.

Using Artillery?

Are you using Artillery to ship faster, more resilient and more scalable systems? Add your team to the Artillery users list on the wiki.

License

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

MPL 2.0 FAQ

artillery's People

Contributors

antono avatar enderv avatar erikerikson avatar fabiosantoscode avatar fbaiodias avatar hassy avatar hayd avatar kjgorman avatar lukebond avatar mindnuts avatar mrchief avatar neilstuartcraig avatar nepoxx avatar sericaia avatar tomgco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.