Skip to content

rsevilla87/hloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hloader

Go-build

 $ ./bin/hloader -h
HTTP loader

Usage:
  ./bin/hloader [flags]
  ./bin/hloader [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Get version info

Flags:
  -u, --url string          Target URL
  -r, --rate int            Request rate, 0 means unlimited
  -c, --concurrency int     Number of concurrent connections (default 1)
  -d, --duration duration   Test duration (default 10s)
  -t, --timeout duration    Request timeout (default 1s)
  -i, --insecure            Skip server's certificate verification (default true)
  -k, --keepalive           Enable HTTP keepalive (default true)
      --http2               Use HTTP2 protocol, if possible (default true)
      --pprof               Enable pprof endpoint in localhost:6060
  -o, --output string       Dump request outputs in the given CSV file
  -h, --help                help for ./bin/hloader

Compilation

$ make build
GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags "-X github.com/cloud-bulldozer/go-commons/version.GitCommit=a5c03b3c983255096635b872d4153c98419f8bd1 -X github.com/cloud-bulldozer/go-commons/version.Version=main -X github.com/cloud-bulldozer/go-commons/version.BuildDate=2023-10-24-12:13:18" -o bin/hloader cmd/hloader.go

CSV output

The csv output has the following format:

1699016948650,200,276028,537,false,false
<timestamp in milliseconds>,<status code>,<latency in microseconds>,<bytes read>,<timeout>,<http error>

Like for example:

1699016948640,200,283085,537,false,false
1699016948650,200,276028,537,false,false
1699016948670,200,255849,537,false,false
1699016948700,200,225850,537,false,false
1699016948709,200,216579,537,false,false