package benchmark

import "k8s.io/kubernetes/Godeps/_workspace/src/google.golang.org/grpc/benchmark"

Package benchmark implements the building blocks to setup end-to-end gRPC benchmarks.

Index

Functions

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

func StartServer() (string, func())

StartServer starts a gRPC server serving a benchmark service. It returns its listen address and a function to stop the server.

Source Files

benchmark.go

Directories

PathSynopsis
Godeps/_workspace/src/google.golang.org/grpc/benchmark/client
Godeps/_workspace/src/google.golang.org/grpc/benchmark/grpc_testingPackage 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
v1.2.0-alpha.4
Published
Nov 25, 2015
Platform
js/wasm
Imports
9 packages
Last checked
31 minutes ago

Tools for package owners.