mirror of https://github.com/grpc/grpc-java.git
Use 1MB as the max payload size in benchmarks to avoid exceeding Netty's buffer pool
default max buffer size.
This commit is contained in:
parent
ae2b5bfda7
commit
a69fbb0a2b
|
|
@ -48,7 +48,9 @@ public abstract class AbstractBenchmark {
|
||||||
* Standard payload sizes.
|
* Standard payload sizes.
|
||||||
*/
|
*/
|
||||||
public enum PayloadSize {
|
public enum PayloadSize {
|
||||||
SMALL(10), MEDIUM(1024), LARGE(65536), JUMBO(16777216);
|
// Max out at 1MB to avoid creating payloads larger than Netty's buffer pool can handle
|
||||||
|
// by default
|
||||||
|
SMALL(10), MEDIUM(1024), LARGE(65536), JUMBO(1048576);
|
||||||
|
|
||||||
private final int bytes;
|
private final int bytes;
|
||||||
PayloadSize(int bytes) {
|
PayloadSize(int bytes) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue