aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-06-28 12:27:01 -0700
committerGravatar GitHub <noreply@github.com>2016-06-28 12:27:01 -0700
commitf0255d4d9ca1d9d1e08d5d1c59deaa9d40e16b78 (patch)
tree79f95829d843c88dfe719d44a3709402cd37ed75
parentcc8bb8cc159645e4f448331ac45ccda37a50e848 (diff)
parent5b47ac385bab0bb24850d94539827e3c008530cc (diff)
Merge pull request #7095 from ctiller/all_calls_together
Colocate calls for the same channel on the same CQ
-rw-r--r--test/cpp/qps/client_async.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc
index 3d98ab0939..1507d1e3d6 100644
--- a/test/cpp/qps/client_async.cc
+++ b/test/cpp/qps/client_async.cc
@@ -180,14 +180,14 @@ class AsyncClient : public ClientImpl<StubType, RequestType> {
using namespace std::placeholders;
int t = 0;
- for (int i = 0; i < config.outstanding_rpcs_per_channel(); i++) {
- for (int ch = 0; ch < config.client_channels(); ch++) {
+ for (int ch = 0; ch < config.client_channels(); ch++) {
+ for (int i = 0; i < config.outstanding_rpcs_per_channel(); i++) {
auto* cq = cli_cqs_[t].get();
auto ctx =
setup_ctx(channels_[ch].get_stub(), next_issuers_[t], request_);
ctx->Start(cq);
- t = (t + 1) % cli_cqs_.size();
}
+ t = (t + 1) % cli_cqs_.size();
}
}
virtual ~AsyncClient() {