LOVE AND WAR : Give Your App Love By Unleashing War
Simple load testing app to test your http services
Installation
Build docker image: docker build -t love_and_war .
Run docker image: docker run -t -p 8081:8081 love_and_war
Send attack request
{
"method": "POST",
"url":"http://127.0.0.1:8080/test",
"attack_duration":"5",
"attack_rate":"10",
"pay_load":"{\"userId\":1}",
"pass_rate": 100
}
method:
The http method for the endpoint you are testing
* url:
The http url being attacked
* attack_duration:
Duration for the attack in seconds
* attack_rate:
Number of attacks to be performed per seconds
* pay_load:
String representation of the payload to be sent to the url for Get endpoints send empty string. Convert your json to string here
* pass_rate:
Success rate percentage that should be met
*
Attack response
{
"latencies": {
"total": 0.061594849,
"mean": 0.000615948
},
"duration": 10,
"wait": 0.000352949,
"requests": 100,
"throughput": 10.099509294546035,
"success": 100,
"status_codes": {
"200": 95,
"500": 5
},
"pass": true
}
latencies:
To understand more about latencies read here.
* duration:
How long the attack took in minutes
* wait:
Wait time before a response in seconds
* requests:
Total number of requests that were sent
* throughput:
Transactions per second
* success:
Percentage success rate
* status_codes:
Status codes received and their count
* pass:
If pass rate provided in request was met
*