1
0
Fork 0

One more readme change

This commit is contained in:
Atridad Lahiji 2024-01-15 00:52:00 -07:00
parent c68d43e330
commit 5809f227ba
No known key found for this signature in database

View file

@ -2,16 +2,16 @@
A lightweight REST load testing tool with rubust support for different verbs, token auth, and performance reports. A lightweight REST load testing tool with rubust support for different verbs, token auth, and performance reports.
## Example using source: ## Example using source
1. `go run main.go -rate=20 -max=100 -url=https://api.example.com/resource -type=POST -json=./data.json -token=YourBearerTokenHere` 1. `go run main.go -rate=20 -max=100 -url=https://api.example.com/resource -type=POST -json=./data.json -token=YourBearerTokenHere`
## Example using binary: ## Example using binary
1. go build 1. go build
2. `./loadr -rate=20 -max=100 -url=https://api.example.com/resource -type=POST -json=./data.json -token=YourBearerTokenHere` 2. `./loadr -rate=20 -max=100 -url=https://api.example.com/resource -type=POST -json=./data.json -token=YourBearerTokenHere`
## Flags: ## Flags
- `-rate`: Number of requests per second. Default is 10. - `-rate`: Number of requests per second. Default is 10.
- `-max`: Maximum number of requests to send. Must be a non-zero integer. Default is 50. - `-max`: Maximum number of requests to send. Must be a non-zero integer. Default is 50.