benchmark: update proper benchmark binary to use larger buffers (#6537)

This commit is contained in:
Doug Fawley 2023-08-14 09:05:30 -07:00 committed by GitHub
parent fbff2abb0f
commit 53d1f23a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -116,7 +116,10 @@ func setupClientEnv(config *testpb.ClientConfig) {
// It returns the connections and corresponding function to close them.
// It returns non-nil error if there is anything wrong.
func createConns(config *testpb.ClientConfig) ([]*grpc.ClientConn, func(), error) {
var opts []grpc.DialOption
opts := []grpc.DialOption{
grpc.WithWriteBufferSize(128 * 1024),
grpc.WithReadBufferSize(128 * 1024),
}
// Sanity check for client type.
switch config.ClientType {

View File

@ -80,7 +80,10 @@ func startBenchmarkServer(config *testpb.ServerConfig, serverPort int) (*benchma
}
runtime.GOMAXPROCS(numOfCores)
var opts []grpc.ServerOption
opts := []grpc.ServerOption{
grpc.WriteBufferSize(128 * 1024),
grpc.ReadBufferSize(128 * 1024),
}
// Sanity check for server type.
switch config.ServerType {