Load testing API including swagger written in GoLang. API can hosted on any machine and can be used to run Load test on API endpoints.
API Json Body
{
"users" : 5,
"executionTimeInSeconds":20,
"rampUpTimeInSeconds": 2,
"httpRequest": {
"method":"GET",
"url":"https://api.test.com/health",
"headers": {
"Content-Type": "application/json"
},
"queryParams":{
"param_key":"param_value
},
"body": {"key":"value"}
}
}
API Response
{
"average_response_time": 156,
"peak_response_time": 791,
"total_requests": 498,
"error_count": 0
}