aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-04-13 18:55:46 +0000
committerGravatar Craig Tiller <ctiller@google.com>2017-04-20 16:50:08 +0000
commit41fdf7d6ade3987e44213e591a1c67fee81e12a2 (patch)
tree88a606bcd0d38918bfdc45736f621ad896719acb /test/cpp
parente6f6a09c171cba7398d04c293763b7593ab853e8 (diff)
Better cost estimation
Diffstat (limited to 'test/cpp')
-rwxr-xr-xtest/cpp/qps/gen_build_yaml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cpp/qps/gen_build_yaml.py b/test/cpp/qps/gen_build_yaml.py
index 2f035abedd..805b0faeec 100755
--- a/test/cpp/qps/gen_build_yaml.py
+++ b/test/cpp/qps/gen_build_yaml.py
@@ -66,6 +66,7 @@ def _scenario_json_string(scenario_json, is_tsan):
def threads_required(scenario_json, where, is_tsan):
scenario_json = mutate_scenario(scenario_json, is_tsan)
if scenario_json['%s_config' % where]['%s_type' % where] == 'ASYNC_%s' % where.upper():
+ if scenario_json['client_config']['client_channels'] == 1: return 1
return scenario_json['%s_config' % where].get('async_%s_threads' % where, 0)
return scenario_json['client_config']['outstanding_rpcs_per_channel'] * scenario_json['client_config']['client_channels']