Skip to main content

Hackable HTTP benchmarking tool.

Project description

https://travis-ci.org/povilasb/httpmeter.svg?branch=master

This is a hackable python based HTTP/HTTPS benchmarking tool. It supports traffic proxying for both HTTP and HTTPS, thus also can be used to test performance of proxy servers.

It is implemented with asyncio and runs on Python >= 3.5. You can optionally use uvloop for better performance.

Usage

pip3 install httpmeter

Synopsis:

httpmeter [options] URL

Options:

-h  Display usage information.

-c, --concurrency <N>
    How many requests should be executed in parallel.

-n, requests <N>
    How many requests to make in total.

-H, --header <custom-header>
    Additional headers to send with every request. Multiple entries
    allowed. E.g.
        --header "Connection: close" --header "User-Agent: benchmark"

-X, --proxy <http://user:pass@proxy:port>
    Proxy address. E.g. http://user1:pass123@localhost:8080

--uvloop
    Use uvloop to increase networking performance.

-p N, --process-count N
    Use N processes to distribute requests over separate CPU cores.
    By default uses the same number of processes as there are CPU
    cores.

Other Tools

Development

Get dependencies:

$ virtualenv --python3 pyenv
$ pyenv/bin/pip install -r requirements/prod.txt

Run the benchmark:

$ pyenv/bin/python -m httpmeter -c 100 -n 500 \
    -X http://username:password@1.2.3.4:8080 http://target.com

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

httpmeter-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file httpmeter-0.1.0.tar.gz.

File metadata

  • Download URL: httpmeter-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for httpmeter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2affb5be71489ed9592a0ce169da2e20baa16b00f3f1357b814a3398e41dd03e
MD5 488545cbe84441f6dc4115bf567724e5
BLAKE2b-256 21b611b8a5fc92d8e6950d3ac318305976971664b876497652a3db69a1bd7d1f

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