Skip to main content

Bombards target server with simultaneous requests

Project description

Made with Python Latest release Latest release MIT license Documentation Status

Bombard is a tool for stress test and benchmarking your HTTP server. Especially it’s good to simulate a heavy load and initial burst of simultaneous HTTP requests with complex logic.

It is designed to be extremely simple yet powerful tool to load test functional behavior.

Thanks to optional Python inlines you can fast and easy describe complex logic for the tests.

Test report shows you how many requests per second your server is capable of serving and with what latency.

Installation

pip install bombard --upgrade

After that use bombard (bombard.exe in Windows) executable:

bombard --help

Requests description

Requests can be just URL or contain JSON described like this

getToken:
    url: "{base}auth"  # use custom {base} variable to stay DRY
    method: POST
    body:  # below is JSON object for request body
        email: name@example.com
        password: admin
    extract:  # get token for next requests
        token:

In first request you can get security token as in example above.

And use it in next requests:

postsList:
   url: "{host}posts"
   headers:
       Authorization: "Bearer {token}"  # we get {token} in 1st request
   script: |
       for post in resp[:3]:  # for 1st three posts from response
           # schedule getPost request (from ammo section)
           # and provide it with id we got from the response
           reload(ammo.getPost, id=post['id'])

Included examples. To list examples

bombard --examples

Command line

From command line you can change number of threads, loop count, supply vars, customize report and so on.

Also you can bootstrap your own bombard.yaml file from any example you like:

bombard --init --example simple

Report

Example of report for the command:

bombard --example simple --repeat 2 --threshold 100
https://github.com/andgineer/bombard/blob/master/docs/_static/simple_stdout.png?raw=true

Documentation

Bombard documentation

Translation managed with Transifex

Project details


Release history Release notifications

This version

1.18

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bombard, version 1.18
Filename, size File type Python version Upload date Hashes
Filename, size bombard-1.18-py3-none-any.whl (28.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page