diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-05-28 07:36:07 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-05-28 07:36:07 -0700 |
commit | d1369aa134e8eaab1bde6a5ea36a8ba655c79a57 (patch) | |
tree | c1cdc85da9e4a01371edee5dcb99a6069f0c5be8 /test/cpp/qps/sync_unary_ping_pong_test.cc | |
parent | fe46136721acc3298a2949a7321d043180daed92 (diff) | |
parent | a3c9fb08136d6a3875b8e400ef4b4137357d6b4a (diff) |
Merge github.com:grpc/grpc into scalable-poll
Diffstat (limited to 'test/cpp/qps/sync_unary_ping_pong_test.cc')
-rw-r--r-- | test/cpp/qps/sync_unary_ping_pong_test.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/cpp/qps/sync_unary_ping_pong_test.cc b/test/cpp/qps/sync_unary_ping_pong_test.cc index 137ef79f2f..d276d13a43 100644 --- a/test/cpp/qps/sync_unary_ping_pong_test.cc +++ b/test/cpp/qps/sync_unary_ping_pong_test.cc @@ -31,12 +31,15 @@ * */ +#include <set> + #include <grpc/support/log.h> #include <signal.h> #include "test/cpp/qps/driver.h" #include "test/cpp/qps/report.h" +#include "test/cpp/util/benchmark_config.h" namespace grpc { namespace testing { @@ -63,14 +66,16 @@ static void RunSynchronousUnaryPingPong() { const auto result = RunScenario(client_config, 1, server_config, 1, WARMUP, BENCHMARK, -2); - ReportQPS(*result); - ReportLatency(*result); + GetReporter()->ReportQPS(*result); + GetReporter()->ReportLatency(*result); } } // namespace testing } // namespace grpc int main(int argc, char** argv) { + grpc::testing::InitBenchmark(&argc, &argv, true); + signal(SIGPIPE, SIG_IGN); grpc::testing::RunSynchronousUnaryPingPong(); |