package benchmark
import "github.com/etcd-io/etcd/Godeps/_workspace/src/google.golang.org/grpc/benchmark"
Package benchmark implements the building blocks to setup end-to-end gRPC benchmarks.
Index ¶
- func DoStreamingRoundTrip(tc testpb.TestServiceClient, stream testpb.TestService_StreamingCallClient, reqSize, respSize int)
- func DoUnaryCall(tc testpb.TestServiceClient, reqSize, respSize int)
- func NewClientConn(addr string) *grpc.ClientConn
- func StartServer(addr string) (string, func())
Functions ¶
func DoStreamingRoundTrip ¶
func DoStreamingRoundTrip(tc testpb.TestServiceClient, stream testpb.TestService_StreamingCallClient, reqSize, respSize int)
DoStreamingRoundTrip performs a round trip for a single streaming rpc.
func DoUnaryCall ¶
func DoUnaryCall(tc testpb.TestServiceClient, reqSize, respSize int)
DoUnaryCall performs an unary RPC with given stub and request and response sizes.
func NewClientConn ¶
func NewClientConn(addr string) *grpc.ClientConn
NewClientConn creates a gRPC client connection to addr.
func StartServer ¶
StartServer starts a gRPC server serving a benchmark service on the given address, which may be something like "localhost:0". It returns its listen address and a function to stop the server.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Godeps/_workspace/src/google.golang.org/grpc/benchmark/client | |
Godeps/_workspace/src/google.golang.org/grpc/benchmark/grpc_testing | Package grpc_testing is a generated protocol buffer package. |
Godeps/_workspace/src/google.golang.org/grpc/benchmark/server | |
Godeps/_workspace/src/google.golang.org/grpc/benchmark/stats |
- Version
- v2.3.8+incompatible (latest)
- Published
- Feb 16, 2017
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 1 month ago –
Tools for package owners.