diff options
Diffstat (limited to 'grpc/tools/run_tests/performance/scenario_config.py')
-rw-r--r-- | grpc/tools/run_tests/performance/scenario_config.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/grpc/tools/run_tests/performance/scenario_config.py b/grpc/tools/run_tests/performance/scenario_config.py index 9e710f13..52d63f36 100644 --- a/grpc/tools/run_tests/performance/scenario_config.py +++ b/grpc/tools/run_tests/performance/scenario_config.py @@ -53,8 +53,11 @@ def _get_secargs(is_secure): def remove_nonproto_fields(scenario): - """Remove special-purpose that contains some extra info about the scenario - but don't belong to the ScenarioConfig protobuf message""" + """Removes special-purpose fields that don't belong in the protobuf. + + This function removes additional information about the scenario that is not + included in the ScenarioConfig protobuf message. + """ scenario.pop('CATEGORIES', None) scenario.pop('CLIENT_LANGUAGE', None) scenario.pop('SERVER_LANGUAGE', None) @@ -596,7 +599,8 @@ class CXXLanguage: 1, 200000, math.sqrt(10)): if synchronicity == 'sync' and outstanding > 1200: continue - if outstanding < channels: continue + if outstanding < channels: + continue yield _ping_pong_scenario( 'cpp_protobuf_%s_%s_qps_unconstrained_%s_%d_channels_%d_outstanding' % (synchronicity, rpc_type, secstr, channels, |