api-profiler

command module
v0.0.0-...-1988447 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

README

api-profiler

Golang package for testing the REST api

Installing

go get -u github.com/Ashwin-Rajeev/api-profiler

Usage

Usage: api-profiler

    -b       Request body file name (Relative path) (Default value = )
    -d       Request duration (Default value = 5)
    -g       Number of concurrent connections (Default value = 5)
    -h       header values seperated with ',' (Default value = )
    -help    know more about the usage of api-profiler (Default value = false)
    -m       Request method (Default value = GET)
    -to      Request time out in seconds (Default value = 1000)

example

api-profiler -d 10 -g 5 https://www.google.com/

output

✔ API-profiler running for 10s over the api: https://www.google.com/

☺ 5 goroutines running concurrently! Stay alert ☺

❤ [Info]❤ Total Memory Read: 137327 Bytes

❤ [Info]❤ Total Requests: 34

❤ [Info]❤ Fastest Request: 121.935ms

❤ [Info]❤ Slowest Request: 1m0s

❤ [Info]❤ Average Request Time: 10.992457138s

❤ [Info]❤ Number of Errors: 41

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL