Skip to content
Snippets Groups Projects
Commit 2c3e7e80 authored by Sree Kuchibhotla's avatar Sree Kuchibhotla
Browse files

use wallclock

parent 3c754e47
No related branches found
No related tags found
No related merge requests found
......@@ -127,18 +127,16 @@ static void BM_Cq_Throughput(benchmark::State& state) {
if (state.thread_index == 0) {
grpc_completion_queue_shutdown(g_cq);
grpc_completion_queue_destroy(g_cq);
state.SetItemsProcessed(state.iterations());
}
track_counters.Finish(state);
}
BENCHMARK(BM_Cq_Throughput)->Threads(1);
BENCHMARK(BM_Cq_Throughput)->Threads(2);
BENCHMARK(BM_Cq_Throughput)->Threads(4);
BENCHMARK(BM_Cq_Throughput)->Threads(8);
BENCHMARK(BM_Cq_Throughput)->Threads(16);
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();
} // namespace testing
} // namespace grpc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment