benchmark

package
v0.0.0-...-da10ef3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2016 License: BSD-3-Clause, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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

func StartServer(addr string) (string, func())

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.

Types

This section is empty.

Directories

Path Synopsis
Package grpc_testing is a generated protocol buffer package.
Package grpc_testing is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL