forge

command module
v0.0.0-...-8a1488b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

README

Forge - Load Testing Utility

codecov

Forge is a simple and efficient load testing utility written in Go. It allows you to simulate load on web services by sending HTTP requests or WebSocket messages at a specified rate.

Installation

To install Forge, use go get:

go get github.com/abakermi/forge

Usage

To use Forge, simply run the forge command followed by the URL you want to test:

forge https://example.com

You can also specify the concurrency level and requests per second (RPS) using flags:

forge -c 10 -rps 100 https://example.com

This command will simulate load with 10 concurrent clients sending 100 requests per second to https://example.com.

Options

  • **-c, --concurrency**: Number of concurrent clients (default is 1).
  • **-r, --rps**: Requests per second (default is 1).

Supported Schemes

Forge supports both HTTP and WebSocket protocols. It automatically detects the scheme of the provided URL and uses the appropriate client:

  • For HTTP/HTTPS URLs, Forge sends HTTP GET requests.
  • For WS/WSS URLs, Forge establishes WebSocket connections and sends ping messages.

License

See LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL