aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/cpp/microbenchmarks/bm_cq_multiple_threads.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc b/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc
index 82f402d3dd..80f21f1f69 100644
--- a/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc
+++ b/test/cpp/microbenchmarks/bm_cq_multiple_threads.cc
@@ -132,11 +132,7 @@ static void BM_Cq_Throughput(benchmark::State& state) {
track_counters.Finish(state);
}
-BENCHMARK(BM_Cq_Throughput)->Threads(1)->UseRealTime();
-BENCHMARK(BM_Cq_Throughput)->Threads(2)->UseRealTime();
-BENCHMARK(BM_Cq_Throughput)->Threads(4)->UseRealTime();
-BENCHMARK(BM_Cq_Throughput)->Threads(8)->UseRealTime();
-BENCHMARK(BM_Cq_Throughput)->Threads(16)->UseRealTime();
+BENCHMARK(BM_Cq_Throughput)->ThreadRange(1, 16)->UseRealTime();
} // namespace testing
} // namespace grpc