From github:
git clone https://github.com/avara1986/python-url-benchmark.git
cd python-url-benchmark
pipenv install
python url_benchmark.py http://0.0.0.0:8880/my-path 200 -H "accept: application/json" -H "Accept-Language: en"
$ python url_benchmark.py -h
usage: url_benchmark.py [-h] [-H [HEADER [HEADER ...]]] [-v VERBOSE]
url retries
Python URL Benchmark
positional arguments:
url Url to check
retries Number of requests to the URL
optional arguments:
-h, --help show this help message and exit
-H [HEADER [HEADER ...]], --header [HEADER [HEADER ...]]
Headers to attach
-v VERBOSE, --verbose VERBOSE
Verbose