|
|
|
@ -36,10 +36,10 @@ namespace testing { |
|
|
|
|
* BENCHMARKING KERNELS |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
void SendCallbackUnaryPingPong(benchmark::State* state, ClientContext* cli_ctx, |
|
|
|
|
EchoRequest* request, EchoResponse* response, |
|
|
|
|
EchoTestService::Stub* stub_, bool* done, |
|
|
|
|
std::mutex* mu, std::condition_variable* cv) { |
|
|
|
|
inline void SendCallbackUnaryPingPong( |
|
|
|
|
benchmark::State* state, ClientContext* cli_ctx, EchoRequest* request, |
|
|
|
|
EchoResponse* response, EchoTestService::Stub* stub_, bool* done, |
|
|
|
|
std::mutex* mu, std::condition_variable* cv) { |
|
|
|
|
int response_msgs_size = state->range(1); |
|
|
|
|
cli_ctx->AddMetadata(kServerMessageSize, std::to_string(response_msgs_size)); |
|
|
|
|
stub_->experimental_async()->Echo( |
|
|
|
|