Skip to content

Checho3388/http-load-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-load-tester

Just another simple HTTP tester written in python.

Motivation

It all started after reading the Coding Challenges site and decided to try one of them. At the same time, I wanted to try to build the app following the code architecture described by Cosmic Python book.

Installation

First, clone the repository

git clone git@github.com:Checho3388/http-load-tester.git

Then create the virtual environment and install the dependencies

python3 -m venv .venv
poetry install

You're ready to go!

Quickstart

To run the tester, just call ccload inside your repository folder and add the endpoint to test.

$ ccload https://google.com
Results:
     Total Requests (2XX).......................: 1
     Failed Requests (5XX)......................: 0
     Request/second.............................: 0.85

    Total Request Time (s) (Min, Max, Mean).....: 1.01, 1.01, 1.01

For more options, use -h.

$ ccload -h
usage: ccload [-h] [-n COUNT] [-c CONCURRENCY] url

HTTP Load Tester.

positional arguments:
  url             URL to test

options:
  -h, --help      show this help message and exit
  -n COUNT        Number of tests per worker
  -c CONCURRENCY  Concurrent workers

About

Just another simple HTTP tester written in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages