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.
- 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
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
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"
-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"
.
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.
--- miniload ---
Total requests: 100
Requests succeeded: 95
Requests failed: 5
Average duration: 120ms
--- END ---
This project is licensed under the MIT License.
Contributions are welcome! Feel free to submit issues or pull requests to improve Mini Load.