an experimental Command Line performance testing tool for your services. What this means, this tool will run concurrently againts your service.
- Better code
- Writing test
- Better output
- Install from
Homebrew
$ brew install Bhinneka/tool/gubrak- Update from
Homebrew
$ brew upgrade Bhinneka/tool/gubrak- Install
binaryfrom source
$ go get github.com/Bhinneka/gubrak
$ go install github.com/Bhinneka/gubrak/cmd/gubrak
$ gubrak --versioncreate config.json file with signature like this for "Content-Type" : application/json:
{
"url": "http://example.com",
"headers": {
"Authorization": "Basic exnfekeoeoeojsjalaljahhd",
"Content-Type": "application/json",
"Accept": "application/json"
},
"payload": {
"from": "Bob",
"content": {
"header": "This is Message 3",
"body": "Hello There"
}
}
}create config.json file with signature like this for "Content-Type": "application/x-www-form-urlencoded":
{
"url": "http://example.com",
"headers": {
"Authorization": "Basic exnfekeoeoeojsjalaljahhd",
"Content-Type": "application/json",
"Accept": "application/json"
},
"payload": "from=Bob&content=hello"
}- run
gubrak
$ gubrak -m get -c /Users/wurianto/Documents/config.json -u https://jsonplaceholder.typicode.com/posts -r 100-m | --method(defaultGET) HTTP method, example-m POSTor-m post-r(default10) Size of Concurrentrequest, example-r 1000-c | --configconfig.json(defaultconfig.json) location, example-c /Users/wurianto/Documents/config.json-u | --urlURL full with path(default inconfig.json), example-u https://jsonplaceholder.typicode.com/posts-v | --versionshowgubrakversion, examplegubrak -v-h | --helpshowHelp, example./gubrak -h