A simple yet effective tool to perform load testing on APIs or websites, developed in Go. This tool will help you understand the performance metrics like the average response time, successful requests, failed requests, memory, and CPU usage.
- Send concurrent requests to an API or website.
- Gather performance metrics like:
- Number of requests
- Average response time
- Min/Max response time
- Total success and failed requests
- Memory and CPU usage
-
Ensure you have Go installed on your machine.
-
Clone the repository:
git clone https://github.com/indranandjha1993/go-load-tester.git cd go-load-tester
-
Build the tool:
go build -o loadtester
Modify the main.go file to set the target URL, HTTP method, number of requests, and concurrency level.
-
Modify the main.go file to set the target URL, HTTP method, number of requests, and concurrency level.
-
Run the tester:
./loadtester
-
Modify the main.go file to set the target URL, HTTP method, number of requests, and concurrency level.
-
Run the tester:
./loadtester
-
Review the results on the console.