Skip to content
SPECIFICTION
Get listed

ghz vs grpcmock-go

ghz

ghz.sh

grpcmock-go

github.com

Side by side

Figureghzgrpcmock-go
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYesYes
APIYes—
Self-hostedYesYes
Plans published11
Spec score · gRPC Tools8.7 (#2)8.1 (#6)
InstallationThe maker documents downloadable operating-system binaries, Homebrew, source builds, and Docker installation.The README gives `go get go.nhat.io/grpcmock` as the installation command.
LicenseThe GitHub repository identifies the project license as Apache-2.0.The repository identifies its license as MIT.
Purposeghz is a command line utility and Go package for load testing and benchmarking gRPC services, including local debugging and performance regression testing in automated CI environments.grpcmock is a set of gRPC test utilities for Golang.

Plans

ghz

  • ghzFree

ghz pricing →

grpcmock-go

  • Open-source Go moduleFree

grpcmock-go pricing →

In their own words

ghz

ghz is a command-line utility and Go package for load testing and benchmarking gRPC services, including local debugging and performance regression checks in CI. Tests can define a service with a.proto file, a compiled protoset bundle, or server reflection, and exercise unary, streaming, or duplex calls using JSON or binary data. Load schedules include constant, step, and linear request rates. Go templates can generate request data and metadata for each call using values such as worker ID, request number, method name, and timestamps. The CLI can emit summary, CSV, JSON, pretty JSON, HTML, Prometheus text exposition, and InfluxDB line protocol results. Documentation also covers InfluxDB output, Prototool, and prebuilt Grafana dashboards. The complementary ghz-web application is labeled beta; it stores reports in projects for viewing and comparison over time, and supports SQLite, MySQL, or PostgreSQL storage. It accepts reports through ingest endpoints. The project is identified as Apache-2.0 licensed. Installation options include prebuilt executables, Homebrew, and building from source. The CLI is listed at free; the web companion is beta.

Visit ghz.sh

grpcmock-go

grpcmock-go is a free, MIT-licensed Go module providing gRPC testing utilities. It helps tests mock gRPC servers, configure expectations for methods, headers, and payloads, and invoke client calls. Supported methods include unary, client-streaming, server-streaming, and bidirectional-streaming patterns. Request matching can use exact values, regular expressions, JSON, or custom matchers. Mock responses may return payloads, errors, or custom-handler results, and streaming client invocations can use custom handlers. Services can be registered from generated Go code, service instances, or individual methods when generated code is unavailable. The project recommends MockServerWithBufConn for in-memory application testing, with examples using bufconn listeners and context dialers. Installation uses `go get go.nhat.io/grpcmock`, and Go 1.25 or later is required. GitHub lists v0.34.0, released December 12, 2025, as the latest release. The Open-source Go module plan costs nothing.

Visit github.com