Skip to content

Commit

Permalink
benchmark: update proper benchmark binary to use larger buffers (#6537)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored Aug 14, 2023
1 parent fbff2ab commit 53d1f23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion benchmark/worker/benchmark_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion benchmark/worker/benchmark_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 53d1f23

Please sign in to comment.