1 # Copyright 2017 gRPC authors.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 licenses(["notice"]) # Apache v2
17 load("//bazel:grpc_build_system.bzl", "grpc_cc_binary", "grpc_cc_library", "grpc_cc_test", "grpc_package")
18 load("//test/cpp/qps:qps_benchmark_script.bzl", "json_run_localhost_batch", "qps_json_driver_batch")
19 load("//bazel:custom_exec_properties.bzl", "LARGE_MACHINE")
21 grpc_package(name = "test/cpp/qps")
25 srcs = ["parse_json.cc"],
26 hdrs = ["parse_json.h"],
27 external_deps = ["protobuf"],
32 name = "qps_worker_impl",
37 "qps_server_builder.cc",
45 "qps_server_builder.h",
55 "//:grpc++_core_stats",
56 "//src/proto/grpc/testing:benchmark_service_proto",
57 "//src/proto/grpc/testing:control_proto",
58 "//src/proto/grpc/testing:payloads_proto",
59 "//src/proto/grpc/testing:worker_service_proto",
60 "//test/core/end2end:ssl_test_data",
61 "//test/core/util:grpc_test_util",
62 "//test/cpp/util:test_config",
63 "//test/cpp/util:test_util",
82 "//src/proto/grpc/testing:control_proto",
83 "//src/proto/grpc/testing:messages_proto",
84 "//src/proto/grpc/testing:report_qps_scenario_service_proto",
85 "//src/proto/grpc/testing:worker_service_proto",
86 "//test/core/util:grpc_test_util",
87 "//test/cpp/util:test_util",
92 name = "benchmark_config",
94 "benchmark_config.cc",
106 "//src/proto/grpc/testing:control_proto",
117 "//src/proto/grpc/testing:stats_proto",
118 "//test/core/util:grpc_test_util",
123 name = "qps_json_driver",
124 srcs = ["qps_json_driver.cc"],
132 "//test/cpp/util:test_config",
133 "//test/cpp/util:test_util",
138 name = "inproc_sync_unary_ping_pong_test",
139 srcs = ["inproc_sync_unary_ping_pong_test.cc"],
144 "//test/cpp/util:test_config",
145 "//test/cpp/util:test_util",
150 name = "interarrival",
151 hdrs = ["interarrival.h"],
152 deps = ["//:grpc++"],
155 qps_json_driver_batch()
157 json_run_localhost_batch()
160 name = "qps_interarrival_test",
161 srcs = ["qps_interarrival_test.cc"],
162 uses_polling = False,
166 "//test/cpp/util:test_config",
171 name = "qps_openloop_test",
172 srcs = ["qps_openloop_test.cc"],
173 exec_properties = LARGE_MACHINE,
174 tags = ["no_windows"], # LARGE_MACHINE is not configured for windows RBE
179 "//test/cpp/util:test_config",
180 "//test/cpp/util:test_util",
185 name = "secure_sync_unary_ping_pong_test",
186 srcs = ["secure_sync_unary_ping_pong_test.cc"],
191 "//test/cpp/util:test_config",
192 "//test/cpp/util:test_util",
197 name = "usage_timer",
198 srcs = ["usage_timer.cc"],
199 hdrs = ["usage_timer.h"],
205 srcs = ["worker.cc"],
212 "//test/core/util:grpc_test_util",
213 "//test/cpp/util:test_config",
214 "//test/cpp/util:test_util",