package
1.51.4
Repository: https://github.com/lfch/grpc.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 a 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.
DoUnaryCall performs an 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

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.