GithubHelp home page GithubHelp logo

hornet's Introduction

HORNET

Hornet is a Java load test framework written in Scala. It wraps a JUnit test and runs it as a load test. This means that you can write load tests in using a familiar framework, i.e. JUnit. It also means that you can run load tests as part of CI to ensure that they do not become stale.

Hornet is Coordinated Omission safe. The coordinated omission problem is one which many load test and benchmark tools suffer from. This is when a pause or slowdown in service response causes the test tool to back off, effectively sending fewer request and making the average response time seem higher then it would normally be in production. Hornet avoids this in two ways: First, it produces a response time percentile graph which is useful to detect when coordinated omission happens. Second, it produces a fixed request per second rate regardless of whether the service responds in time or not.

Hornet currently produces three types of reports: text, HTML, and CSV. The reports contain the following sections:

  • Request response time.
  • Throughput (request per second).
  • Failure rate.
  • Request response percentile.

HOW TO USE IN MY PROJECT

See our wiki page on the subject: How to Use in My Project.

EXAMPLES

Text Report

HttpLoadTest#testUsername:
                 ▂   ▅   ▆   ▇   █   ▇
   Throughput:  15  65  74  96 101  96
                 ▁   ▂   ▄   ▄   ▆   █
Response Time:  14  99 213 258 343 464
                 ▁   ▁   ▁   ▁   ▁   ▁
 Failure Rate:   0   0   0   0   0   0
 Thread Count:   1  10  20  30  40  50

HTML Report

Interactive Report

HOW TO BUILD

Check out the code from github.

Compile

sbt compile

Test

sbt test

Create Fat Jar

sbt assembly

Create Zip

sbt release

LIMITATIONS

Currently, Hornet only supports a single load driver. Multi worker support is coming soon.

CODE OF CONDUCT

This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.

LICENSE

Copyright 2016 Spotify AB.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

hornet's People

Contributors

econchick 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.