Adding more comments & fix the outstanding channel count

pull/21904/head
Lidi Zheng 5 years ago
parent 4819d8ba6e
commit 72514e9bf4
  1. 3
      src/python/grpcio_tests/tests_aio/benchmark/benchmark_client.py
  2. 4
      tools/run_tests/performance/scenario_config.py

@ -42,7 +42,10 @@ class BenchmarkClient(abc.ABC):
def __init__(self, address: str, config: control_pb2.ClientConfig,
hist: histogram.Histogram):
# Disables underlying reuse of subchannels
unique_option = (('iv', random.random()),)
# Parses the channel argument from config
channel_args = tuple(
(arg.name, arg.str_value) if arg.HasField('str_value') else (
arg.name, int(arg.int_value)) for arg in config.channel_args)

@ -829,7 +829,7 @@ class PythonAsyncIOLanguage:
return 1200
def scenarios(self):
for outstanding in [32, 64, 128, 256, 512]:
for outstanding in [64, 128, 256]:
for channels in [1, 4]:
yield _ping_pong_scenario(
'python_asyncio_protobuf_async_unary_ping_pong_%dx%d_max' %
@ -840,7 +840,7 @@ class PythonAsyncIOLanguage:
rpc_type='UNARY',
client_type='ASYNC_CLIENT',
server_type='ASYNC_SERVER',
outstanding=outstanding,
outstanding=outstanding * channels,
channels=channels,
unconstrained_client='async',
categories=[SCALABLE])

Loading…
Cancel
Save