v.io: v.io/x/ref/runtime/internal/rpc/benchmark/internal Index | Files

package internal

import "v.io/x/ref/runtime/internal/rpc/benchmark/internal"

Index

Package Files

client.go discharger.go server.go

func CallEcho Uses

func CallEcho(b *testing.B, ctx *context.T, address string, iterations, payloadSize int, stats *tbm.Stats)

CallEcho calls 'Echo' method 'iterations' times with the given payload size.

func CallEchoStream Uses

func CallEchoStream(b *testing.B, ctx *context.T, address string, iterations, chunkCnt, payloadSize int, stats *tbm.Stats)

CallEchoStream calls 'EchoStream' method 'iterations' times. Each iteration sends 'chunkCnt' chunks on the stream and receives the same number of chunks back. Each chunk has the given payload size.

func NewDischargeServer Uses

func NewDischargeServer(ctx *context.T) security.Caveat

func NewService Uses

func NewService() benchmark.BenchmarkServerStub

func StartEchoStream Uses

func StartEchoStream(b *testing.B, ctx *context.T, address string, iterations, chunkCnt, payloadSize int, stats *tbm.Stats) (<-chan int, func())

StartEchoStream starts to call 'EchoStream' method 'iterations' times. This does not block, and returns a channel that will receive the number of iterations when it's done. It also returns a callback function to stop the streaming. Each iteration requests 'chunkCnt' chunks on the stream and receives that number of chunks back. Each chunk has the given payload size. Zero 'iterations' means unlimited.

Package internal imports 11 packages (graph) and is imported by 10 packages. Updated 2020-09-08. Refresh now. Tools for package owners.