Documentation
¶
Overview ¶
hfrun starts a Hyperfoil in-vm controller, runs one benchmark, fetches stats/total JSON via the REST API while the controller is still alive, and writes the result to --out.
Why a Go binary instead of a shell script:
- "wait-run" in the Hyperfoil CLI consumes buffered stdin, making it impossible to pipe subsequent commands (export, exit) in one printf.
- Go goroutines let us write commands to jbang's stdin sequentially, waiting for specific log output before sending the next command.
Usage:
go run ./internal/loadtest/hfrun/ --yaml=path/to/bench.hf.yaml --out=result.json
Click to show internal directories.
Click to hide internal directories.