Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

ghz

$ ghz Community Med Risk
Bojan Komazec · Browser & Web · Apache-2.0 · macos / linux / windows

ghz 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.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install ghz
CLI vs MCP Decision CLI Only

Direct gRPC load generator with protobuf reflection and JSON histograms; no MCP server targets binary gRPC stress testing.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

First-class -O json / -O pretty output format, --stdin JSON payload input, and --config declarative run files.

  • Supports -O json (--format), --stdin, and --config
Trust & Safety 20 / 25

Defaults to finite 200 requests (-n 200), supports --rps throttling and -t timeouts, though --insecure skips TLS verification.

  • Finite default -n 200, --rps, and -t timeout controls
Setup & Portability 14 / 15

Static Go binary distributed via Homebrew, go install, Docker, and GitHub Releases across macOS, Linux, and Windows.

  • Cross-platform binary via brew install ghz and releases
Utility & Efficiency 14 / 15

Supports unary, streaming, proto/protoset files, server reflection, custom gRPC metadata, and CSV/JSON/HTML exports.

  • Handles reflection, .proto, protosets, and streaming RPCs
Maintenance & Lineage 7 / 10

Well-established Apache-2.0 community tool (bojand/ghz), though largely feature-complete with slower release cadence.

  • Apache-2.0 bojand/ghz repository
Docs & Verifiability 9 / 10

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

Auth Modes
No Auth Env API Key Config File
Credential Storage

Accepts transient gRPC metadata (-m) or TLS certs (--cacert, --cert, --key) per invocation; --config JSON/TOML files are user-managed.

Side Effects
Read-Only Remote Write
Cost & Quotas

Free, Apache-2.0 open-source Go binary.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Benchmark a read-only gRPC endpoint with JSON output
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

Benchmark a gRPC RPC using a proto file and JSON payload
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 json output and JSON payload input (-d / --stdin) fit automated testing seamlessly.
  • + Works without local .proto files when gRPC server reflection is enabled.

Caveats & Pitfalls

  • ! Requires --insecure for plaintext local gRPC servers, which must not be copied to production commands.
  • ! Upstream development cadence has slowed in recent releases.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI