diff options
author | 2017-03-24 18:45:22 +0100 | |
---|---|---|
committer | 2017-03-24 21:56:51 +0100 | |
commit | b02dd01584e21565ebea173ceee7568404d23f2b (patch) | |
tree | 5e8b6c4f5989700b87870ff30252dbde02bf8d7c /test | |
parent | ddab452096d0f81505dd74b0ebddeff5af40f05c (diff) |
Fixing qps & benchmark.
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/microbenchmarks/BUILD | 2 | ||||
-rw-r--r-- | test/cpp/qps/BUILD | 33 | ||||
-rw-r--r-- | test/cpp/qps/benchmark_config.cc (renamed from test/cpp/util/benchmark_config.cc) | 2 | ||||
-rw-r--r-- | test/cpp/qps/benchmark_config.h (renamed from test/cpp/util/benchmark_config.h) | 0 | ||||
-rw-r--r-- | test/cpp/qps/qps_json_driver.cc | 2 | ||||
-rw-r--r-- | test/cpp/qps/qps_openloop_test.cc | 2 | ||||
-rw-r--r-- | test/cpp/qps/qps_test.cc | 2 | ||||
-rw-r--r-- | test/cpp/qps/secure_sync_unary_ping_pong_test.cc | 2 |
8 files changed, 40 insertions, 5 deletions
diff --git a/test/cpp/microbenchmarks/BUILD b/test/cpp/microbenchmarks/BUILD index 8f8858367f..38619666dc 100644 --- a/test/cpp/microbenchmarks/BUILD +++ b/test/cpp/microbenchmarks/BUILD @@ -33,6 +33,7 @@ cc_test( name = "noop-benchmark", srcs = ["noop-benchmark.cc"], deps = ["//external:benchmark"], + linkopts = ["-pthread"], ) cc_library( @@ -40,6 +41,7 @@ cc_library( srcs = ["helpers.cc"], hdrs = ["helpers.h", "fullstack_fixtures.h", "fullstack_context_mutators.h"], deps = ["//:grpc++", "//external:benchmark", "//test/core/util:grpc_test_util", "//src/proto/grpc/testing:echo_proto"], + linkopts = ["-pthread"], ) cc_test( diff --git a/test/cpp/qps/BUILD b/test/cpp/qps/BUILD index d818643bc3..6492b63ec3 100644 --- a/test/cpp/qps/BUILD +++ b/test/cpp/qps/BUILD @@ -51,14 +51,19 @@ cc_library( "server.h", ], deps = [ + ":histogram", + ":interarrival", + ":usage_timer", "//:grpc", "//:grpc++", "//external:gtest", "//src/proto/grpc/testing:control_proto", "//src/proto/grpc/testing:payloads_proto", "//src/proto/grpc/testing:services_proto", + "//test/core/end2end:ssl_test_data", "//test/core/util:gpr_test_util", "//test/core/util:grpc_test_util", + "//test/cpp/util:test_util", ], ) @@ -73,7 +78,31 @@ cc_library( "report.h", ], deps = [ + ":histogram", + ":parse_json", + ":qps_worker_impl", + "//:grpc++", + "//src/proto/grpc/testing:control_proto", + "//src/proto/grpc/testing:messages_proto", + "//src/proto/grpc/testing:services_proto", + "//test/core/util:gpr_test_util", + "//test/core/util:grpc_test_util", + ], +) + +cc_library( + name = "benchmark_config", + srcs = [ + "benchmark_config.cc", + ], + hdrs = [ + "benchmark_config.h", + ], + deps = [ + ":driver_impl", + ":histogram", "//:grpc++", + "//external:gflags", "//src/proto/grpc/testing:control_proto", ], ) @@ -117,8 +146,10 @@ cc_binary( name = "qps_json_driver", srcs = ["qps_json_driver.cc"], deps = [ + ":benchmark_config", ":driver_impl", "//:grpc++", + "//external:gflags", ], ) @@ -126,6 +157,7 @@ cc_test( name = "qps_openloop_test", srcs = ["qps_openloop_test.cc"], deps = [ + ":benchmark_config", ":driver_impl", ":qps_worker_impl", ], @@ -135,6 +167,7 @@ cc_test( name = "secure_sync_unary_ping_pong_test", srcs = ["secure_sync_unary_ping_pong_test.cc"], deps = [ + ":benchmark_config", ":driver_impl", "//:grpc++", ], diff --git a/test/cpp/util/benchmark_config.cc b/test/cpp/qps/benchmark_config.cc index 6fc864069e..98b8d0ba37 100644 --- a/test/cpp/util/benchmark_config.cc +++ b/test/cpp/qps/benchmark_config.cc @@ -31,7 +31,7 @@ * */ -#include "test/cpp/util/benchmark_config.h" +#include "test/cpp/qps/benchmark_config.h" #include <gflags/gflags.h> DEFINE_bool(enable_log_reporter, true, diff --git a/test/cpp/util/benchmark_config.h b/test/cpp/qps/benchmark_config.h index 6b308a15ff..6b308a15ff 100644 --- a/test/cpp/util/benchmark_config.h +++ b/test/cpp/qps/benchmark_config.h diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc index bd2c1f0ec6..53df4abcd3 100644 --- a/test/cpp/qps/qps_json_driver.cc +++ b/test/cpp/qps/qps_json_driver.cc @@ -43,7 +43,7 @@ #include "test/cpp/qps/driver.h" #include "test/cpp/qps/parse_json.h" #include "test/cpp/qps/report.h" -#include "test/cpp/util/benchmark_config.h" +#include "test/cpp/qps/benchmark_config.h" DEFINE_string(scenarios_file, "", "JSON file containing an array of Scenario objects"); diff --git a/test/cpp/qps/qps_openloop_test.cc b/test/cpp/qps/qps_openloop_test.cc index 70e2709ac0..7f820a3914 100644 --- a/test/cpp/qps/qps_openloop_test.cc +++ b/test/cpp/qps/qps_openloop_test.cc @@ -38,7 +38,7 @@ #include "test/core/util/test_config.h" #include "test/cpp/qps/driver.h" #include "test/cpp/qps/report.h" -#include "test/cpp/util/benchmark_config.h" +#include "test/cpp/qps/benchmark_config.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/qps_test.cc b/test/cpp/qps/qps_test.cc index f94ea0cb49..d5a6ff621d 100644 --- a/test/cpp/qps/qps_test.cc +++ b/test/cpp/qps/qps_test.cc @@ -37,7 +37,7 @@ #include "test/cpp/qps/driver.h" #include "test/cpp/qps/report.h" -#include "test/cpp/util/benchmark_config.h" +#include "test/cpp/qps/benchmark_config.h" namespace grpc { namespace testing { diff --git a/test/cpp/qps/secure_sync_unary_ping_pong_test.cc b/test/cpp/qps/secure_sync_unary_ping_pong_test.cc index d0c47d102a..8afcebb6cf 100644 --- a/test/cpp/qps/secure_sync_unary_ping_pong_test.cc +++ b/test/cpp/qps/secure_sync_unary_ping_pong_test.cc @@ -37,7 +37,7 @@ #include "test/cpp/qps/driver.h" #include "test/cpp/qps/report.h" -#include "test/cpp/util/benchmark_config.h" +#include "test/cpp/qps/benchmark_config.h" namespace grpc { namespace testing { |