Skip to content

janmarkuslanger/miniload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Load - Lightweight HTTP Load Testing CLI

Mini Load is a simple and lightweight command-line tool for performing HTTP load tests. It allows you to send multiple concurrent requests to a specified URL and measures response times, success rates, and failures.

Features

  • Send concurrent HTTP requests
  • Measure response times and calculate averages
  • Track success and failure rates
  • Configurable concurrency and total request count
  • Support for different HTTP methods (GET, POST, PUT, DELETE, etc.)
  • Ability to set custom headers

Installation

You can install Mini Load using go install:

go install github.com/janmarkuslanger/miniload@latest

Ensure that $GOBIN is in your PATH so you can run miniload from anywhere:

export PATH=$PATH:$(go env GOPATH)/bin

Usage

Run Mini Load with the following command:

miniload -url "https://example.com" -c 10 -t 100 -m GET -h "Authorization:Bearer mytoken;User-Agent:MiniLoad"

Parameters:

  • -url (required): The target URL to test.
  • -c (optional, default: 1): Number of concurrent requests.
  • -t (optional, default: 10): Total number of requests to send.
  • -m (optional, default: GET): HTTP method (GET, POST, PUT, DELETE, etc.).
  • -h (optional): Custom headers in the format "Key:Value;Key2:Value2".

Example:

miniload -url "https://api.example.com" -c 5 -t 50 -m POST -h "Authorization:Bearer token123"

This will send 50 POST requests to https://api.example.com with a concurrency level of 5 and an Authorization header.

Output Example

--- miniload ---
Total requests: 100
Requests succeeded: 95
Requests failed: 5
Average duration: 120ms
--- END ---

License

This project is licensed under the MIT License.

Contributions

Contributions are welcome! Feel free to submit issues or pull requests to improve Mini Load.

About

Minimalistic load tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages