main
v1.6.0
github.com/ppg/grpc-go/benchmark/benchmain
Documentation
pkg.go.dev ↗Package main provides benchmark with setting flags.
An example to run some benchmarks with profiling enabled:
go run benchmark/benchmain/main.go -benchtime=10s -workloads=all \ -compression=on -maxConcurrentCalls=1 -traceMode=false \ -reqSizeBytes=1,1048576 -respSizeBytes=1,1048576 \ -latency=0s -kbps=0 -mtu=0 \ -cpuProfile=cpuProf -memProfile=memProf -memProfileRate=10000