Skip to content

Instantly share code, notes, and snippets.

@mariusmitrofan
Last active December 3, 2019 10:40
Show Gist options
  • Save mariusmitrofan/2201ca150862249b2dd4ca53a087164c to your computer and use it in GitHub Desktop.
Save mariusmitrofan/2201ca150862249b2dd4ca53a087164c to your computer and use it in GitHub Desktop.
export API_KEY=the api key you received in your mailbox
export REQUEST=the value that was generated when you
created the test and offered in the response as
"requestId"
cat > results-from-bombard.json <<EOF
{
"requestId": "${REQUEST}"
}
EOF
curl \
-X POST \
-d "@results-from-bombard.json" \
-H "x-api-key: ${API_KEY}" \
-H "Content-Type: application/json" \
https://beta.rungutan.com/result
{
"status": "COMPLETED",
"input": {
"requestId": "OBFUSCATED_VALUE_HERE",
"protocol": "https",
"runTime": "300s",
"hostname": "netbears.com",
"hatchRate": 500000,
"numClients": 500000,
"maxThreads": 10,
"sslVerify": 1,
"maxWait": 1000,
"minWait": 1000
},
"globalStats": {
"numRequestsAllThreads": 593503,
"numFailuresAllThreads": 0,
"minResponseTimeAllThreads": 80.499887466430664,
"medianResponseTimeAllThreads": 1600.0,
"avgResponseTimeAllThreads": 1614.6217442072964,
"maxResponseTimeAllThreads": 7439.6598339080811,
"totalRequestsPerSecondAllThreads": 1972.3072531937187,
"totalRequestsPerMinuteAllThreads": 118338.43519162312
},
<...the thread results were removed...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment