Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rsevilla87/hloader
- Owner: rsevilla87
- License: apache-2.0
- Created: 2023-10-23T08:14:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-03T08:37:33.000Z (9 months ago)
- Last Synced: 2024-06-21T06:19:19.310Z (7 months ago)
- Topics: golang, http, http-client, http2, performance, stats
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 loaderUsage:
./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 infoFlags:
-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
```