Skip to main content

Simple HTTP Load tester

Project description

Apache Bench replacement===== Salvo =====

http://coveralls.io/repos/github/tarekziade/salvo/badge.svg?branch=master http://travis-ci.org/tarekziade/salvo.svg?branch=master

This is the replacement for https://github.com/tarekziade/boom

Salvo is a simple command line tool to send some load to an HTTP(S) endpoint.

Salvo is a script you can use to quickly smoke-test your web app deployment. If you need a more complex tool, I’d suggest looking at Molotov

Salvo was specifically written to replace my Apache Bench (ab) usage. Salvo is based on Molotov, which uses Python 3 asyncio & aiohttp.

Installation

Salvo requires Python 3.6+ and Molotov, which gets installed as a dependency.

Just do:

$ pip install salvo

Basic usage

Basic usage example: 100 queries with a maximum concurrency of 10 users:

% salvo http://localhost:80 -c 10 -n 100
-------- Server info --------

Server Software: nginx/1.18.0
Host: localhost

-------- Running 100 queries - concurrency 10 --------

[================================================================>.] 99%

-------- Results --------

Successful calls                    1000
Total time                          16.0587 s
Average                             0.0161 s
Fastest                             0.0036 s
Slowest                             0.2524 s
Amplitude                           0.2488 s
Standard deviation                  0.011326
Requests Per Second                 62.27
Requests Per Minute                 3736.29

-------- Status codes --------
Code 200                    1000 times.

You can also use –duration if you want to run for a given amount of time.

For a full list of features, run salvo –help

Contribute

Salvo is very simple and anyone familiar with Python can contribute.

If you are interested in this project, you are welcome to join the fun at https://github.com/tarekziade/salvo

Make sure to add yourself to the contributors list if your PR gets merged. And make sure it’s in alphabetical order!

Release History

0.2 - 2020-12-02

  • Massive cleanup

  • Works with the latest Molotov and aiohttp

  • Improved test coverage

0.1 - 2020-11-18

  • Initial working release

Owner and creator

Contributors

  • You ? :)

Project details


Download files

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

Source Distribution

salvo-0.2.tar.gz (16.8 kB view details)

Uploaded Source

File details

Details for the file salvo-0.2.tar.gz.

File metadata

  • Download URL: salvo-0.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for salvo-0.2.tar.gz
Algorithm Hash digest
SHA256 deebea4388703c55b379430b29780e8c392fbafd15efc2e35ad7370aa5470006
MD5 a1d626bcf6f7b6ad127361e1b0b01e04
BLAKE2b-256 3131107884ad7d2cf276641c0e69c11eda8fd5317c0758525229510e4a8f5e0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page