ghz
$ ghz Community Med Riskghz is a Go-based gRPC benchmarking and load testing CLI inspired by hey. It resolves protobuf schemas via gRPC server reflection or .proto/protoset files, accepts JSON payloads via -d or --stdin, and outputs complete latency/status reports via -O json.
brew install ghz Direct gRPC load generator with protobuf reflection and JSON histograms; no MCP server targets binary gRPC stress testing.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class -O json / -O pretty output format, --stdin JSON payload input, and --config declarative run files.
- Supports
-O json(--format),--stdin, and--config
Defaults to finite 200 requests (-n 200), supports --rps throttling and -t timeouts, though --insecure skips TLS verification.
- Finite default
-n 200,--rps, and-ttimeout controls
Static Go binary distributed via Homebrew, go install, Docker, and GitHub Releases across macOS, Linux, and Windows.
- Cross-platform binary via
brew install ghzand releases
Supports unary, streaming, proto/protoset files, server reflection, custom gRPC metadata, and CSV/JSON/HTML exports.
- Handles reflection,
.proto, protosets, and streaming RPCs
Well-established Apache-2.0 community tool (bojand/ghz), though largely feature-complete with slower release cadence.
- Apache-2.0
bojand/ghzrepository
Dedicated documentation site (ghz.sh/docs) detailing every flag, config field, and JSON output schema.
- Full documentation hosted at
https://ghz.sh/docs/intro
Security, Auth & Guardrails
Accepts transient gRPC metadata (-m) or TLS certs (--cacert, --cert, --key) per invocation; --config JSON/TOML files are user-managed.
Free, Apache-2.0 open-source Go binary.
# ghz Agent Rules - Always pass `-O json` (`--format=json`) for clean machine-readable output. - Keep `-n`, `-z`, or `--rps` bounded and avoid `--insecure` against production endpoints.
Agent-Ready Command Recipes
Safe Read-Only Queries
ghz --insecure --call pkg.HealthService.Check -n 200 -c 10 -O json localhost:50051
Uses server reflection to benchmark Check for 200 calls and prints JSON metrics (-O json).
Controlled Writes & Previews
ghz --insecure --proto ./service.proto --call pkg.UserService.Create -d '{"name":"test"}' -n 50 -c 5 -O json localhost:50051 Sends 50 bounded RPC calls with a JSON payload and outputs structured JSON latency histograms.
Strengths for Agents
- + Native
-O jsonoutput and JSON payload input (-d/--stdin) fit automated testing seamlessly. - + Works without local
.protofiles when gRPC server reflection is enabled.
Caveats & Pitfalls
- ! Requires
--insecurefor plaintext local gRPC servers, which must not be copied to production commands. - ! Upstream development cadence has slowed in recent releases.