echo/

directory
v0.0.0-...-bacb0e4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0

README

Echo Client for e2e test

Simple echo client for e2e testing against the echo service defined in echo.proto.

Usage

The client sends out numRpcs number of Ping-Pong unary requests sequentially with request size specified by reqSize in KB, and response size specified by rspSize in KB, test result will be printed in console.

Generate protobuf code

If we need to regenerate pb code for echo grpc service, run:

./echo/codegen.sh

Run client

Example command for endpoint some.test.service with 100 RPCs and 100KB response size:

go run echo-client/main.go -numRpcs=100 -rspSize=100

Example test result

[Number of RPCs: 100, Request size: 1KB, Response size: 100KB]
                Avg     Min     p50     p90     p99     Max
Time(ms)        76      74      76      78      109     109

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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