package
1.72.0-dev
Repository: https://github.com/grpc/grpc-go.git
Documentation: pkg.go.dev

# Packages

Package main provides benchmark with setting flags.
To format the benchmark result: go run benchmark/benchresult/main.go resultfile To see the performance change based on an old result: go run benchmark/benchresult/main.go resultfile_old resultfile It will print the comparison result of intersection benchmarks between two files.
Package main provides a client used for benchmarking.
Package flags provide convenience types and routines to accept specific types of flag values on the command line.
Package latency provides wrappers for net.Conn, net.Listener, and net.Dialers, designed to interoperate to inject real-world latency into network connections.
No description provided by the author
Package main provides a server used for benchmarking.
Package stats tracks the statistics associated with benchmark runs.
Binary worker implements the benchmark worker that can turn into a benchmark client or server.

# Functions

DoByteBufStreamingRoundTrip performs a round trip for a single streaming rpc, using a custom codec for byte buffer.
DoStreamingRoundTrip performs a round trip for a single streaming rpc.
DoStreamingRoundTripPreloaded performs a round trip for a single streaming rpc with preloaded payload.
DoUnaryCall performs a unary RPC with given stub and request and response sizes.
NewClientConn creates a gRPC client connection to addr.
NewClientConnWithContext creates a gRPC client connection to addr using ctx.
NewPayload creates a payload with the given type and size.
StartServer starts a gRPC server serving a benchmark service according to info.

# Constants

PreloadMsgSizeHeader indicates that the client is going to ask for a fixed response size and passes this size to the server.
UnconstrainedStreamingDelayHeader is used to pass the maximum amount of time the server should sleep between consecutive RPC responses.
UnconstrainedStreamingHeader indicates to the StreamingCall handler that its behavior should be unconstrained (constant send/receive in parallel) instead of ping-pong.

# Structs

ServerInfo contains the information to create a gRPC benchmark server.