Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rsevilla87/hloader

Easy to use HTTP loader tool
https://github.com/rsevilla87/hloader

golang http http-client http2 performance stats

Last synced: about 1 month ago
JSON representation

Easy to use HTTP loader tool

Awesome Lists containing this project

README

        

# hloader

[![Go-build](https://github.com/rsevilla87/hloader/actions/workflows/go-build.yml/badge.svg?branch=main&event=push)](https://github.com/rsevilla87/hloader/actions/workflows/go-build.yml)

```shell
$ ./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

```shell
$ 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:

```csv
1699016948650,200,276028,537,false,false
,,,,,
```

Like for example:

```csv
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
```