hammer

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

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

                          \`. 
.--------------.___________) \
|//////////////|___________[ ]
`--------------'           ) (
                           '-'

█░█ ▄▀█ █▀▄▀█ █▀▄▀█ █▀▀ █▀█
█▀█ █▀█ █░▀░█ █░▀░█ ██▄ █▀▄

Hammer

A simple load testing tool built in go

Usage

For help

./hammer -h

Usage of ./hammer:
  -dur int
    	Duration in seconds dur=1 where is 1 is a valid duration in seconds. (default 1)
  -headers {'Content-Type' : 'application/json'
    	headers in string format. example: {'Content-Type' : 'application/json' (default "{}")
  -method string
    	If protocol used is http, possible options are get, put, update, delete. Default is get. (default "get")
  -prot string
    	Protocol used http, tcp or udp. (default "http")
  -rps int
    	Requests per second. Usage rps=1 where 1 is a positive integer. (default 1)
  -url string
    	Target url for load testing. (default "url")

Example

./hammer -dur 2 -method GET -prot http -rps 1 -url http://diljitpr.net

Output

                          \`.
.--------------.___________) \
|//////////////|___________[ ]
`--------------'           ) (
                           '-'

█░█ ▄▀█ █▀▄▀█ █▀▄▀█ █▀▀ █▀█
█▀█ █▀█ █░▀░█ █░▀░█ ██▄ █▀▄
Hammer Load Test Tool
---------------------------------
-----Parameters------------------
Requests Per Second:  1
Duration:  2
---------------------------------
Hammering ...

---------------------------------
Summary Statistics
---------------------------------
P99(ms) :  259
P95(ms) :  259
P90(ms) :  259
Max(ms) :  418
Min(ms) :  100
---------------------------------

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