https://github.com/arham-jain/gonce
An HTTP performance testing tool written in GoLang
https://github.com/arham-jain/gonce
golang goroutine performance-testing
Last synced: 3 months ago
JSON representation
An HTTP performance testing tool written in GoLang
- Host: GitHub
- URL: https://github.com/arham-jain/gonce
- Owner: arham-jain
- Created: 2020-03-08T11:43:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T10:43:49.000Z (about 3 years ago)
- Last Synced: 2024-06-20T15:43:20.979Z (almost 2 years ago)
- Topics: golang, goroutine, performance-testing
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gonce
A HTTP API performance testing tool written in GoLang
* [Description](#description)
* [Installation](#installation)
* [Usage](#usage)
## Description
A performance testing tool written in GoLang. Supports performance testing of HTTP APIs.
## Installation
The go application can be installed using:
```go get github.com/arham-jain/gonce```
Alternatively, the binary of the above can be downloaded [here](https://drive.google.com/open?id=1v_uqKNhKkB3YinCHgvTpSEnuyhG6Tl0j).
## Usage
Writing the configuration file. A sample config file:
```
{
"threads" : 10,
"rampUpTimeInSeconds":,
"executionTimeInSeconds":5,
"httpRequest": {
"method":"POST",
"urlWithEndpoint":"https://sample.com/v1/api",
"payload": {
{{sample_payload}}
},
"headers": {
"Content-Type": "application/json"
},
"queryParams":{
"param_key":"param_value
},
"successStatusCodes": {
"201":true
}
}
}
```
Running the performance test:
```go run main.go {{path_to_file}}```
## Contribution
To contribute,
1. Create an issue on github
2. Create a pull request
3. Submit for review