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
binary
from source
$ go get github.com/Bhinneka/gubrak
$ go install github.com/Bhinneka/gubrak/cmd/gubrak
$ gubrak --version
create 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 POST
or-m post
-r
(default10
) Size of Concurrentrequest
, example-r 1000
-c | --config
config.json
(defaultconfig.json
) location, example-c /Users/wurianto/Documents/config.json
-u | --url
URL full with path
(default inconfig.json
), example-u https://jsonplaceholder.typicode.com/posts
-v | --version
showgubrak
version, examplegubrak -v
-h | --help
showHelp
, example./gubrak -h