Skip to content

A script that serves as a general-purpose HTTP load-testing and benchmarking library.

Notifications You must be signed in to change notification settings

nightlessbaron/load_test_framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load Testing Framework

This is a general-purpose HTTP load-testing and benchmarking library.

Features

  • Support for different HTTP methods (GET, POST, PUT, DELETE).
  • Fixed QPS (Queries Per Second).
  • Latency and error rate reporting.
  • Concurrent requests support.
  • Response validation.
  • Detailed metrics including percentiles.
  • Graphical reports (histograms, time-series charts).
  • Asynchronous support.
  • Sophisticated rate limiting strategies.
  • Progress bar to monitor the testing process.

Getting Started

Prerequisites

  • Docker
  • Git

Cloning the Repository

git clone [email protected]:nightlessbaron/load_test_framework.git
cd load_test_framework

Running the Tests

docker build -t http-load_test .
docker run -it --rm -v "$(pwd)/output:/usr/src/app/output" http-load_test <url> --qps <qps> --duration <dur> --concurrency <con> --timeout <timeout> --method <method> --expected_status <status> --output <output file>

An example command:

docker run -it --rm -v "$(pwd)/output:/usr/src/app/output" http-load_test https://jsonplaceholder.typicode.com/posts/1 --qps 10 --duration 10 --concurrency 10 --timeout 5 --method GET --expected_status 201 --output output/test_report.json

About

A script that serves as a general-purpose HTTP load-testing and benchmarking library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published