Complete microbenchmarks

pull/9780/head
Craig Tiller 8 years ago
parent 19f3ea2c20
commit f4ea01b71a
  1. 1
      .clang_complete
  2. 2
      test/core/util/BUILD
  3. 14
      test/cpp/microbenchmarks/BUILD
  4. 3
      test/cpp/microbenchmarks/bm_closure.cc
  5. 2
      test/cpp/microbenchmarks/bm_fullstack.cc

@ -4,5 +4,6 @@
-Igens
-I.
-Ithird_party/boringssl/include
-Ithird_party/benchmark/include
-Ithird_party/zlib
-Ithird_party/protobuf/src

@ -57,9 +57,11 @@ cc_library(
"reconnect_server.c",
"slice_splitter.c",
"test_tcp_server.c",
"trickle_endpoint.c",
],
hdrs = [
"debugger_macros.h",
"trickle_endpoint.h",
"grpc_profiler.h",
"mock_endpoint.h",
"parse_hexstring.h",

@ -32,5 +32,17 @@ licenses(["notice"]) # 3-clause BSD
cc_test(
name = "noop-benchmark",
srcs = ["noop-benchmark.cc"],
deps = ["//:grpc++", "//external:benchmark"],
deps = ["//external:benchmark"],
)
cc_test(
name = "bm_fullstack",
srcs = ["bm_fullstack.cc"],
deps = ["//:grpc++", "//external:benchmark", "//test/core/util:grpc_test_util", "//src/proto/grpc/testing:echo_proto"],
)
cc_test(
name = "bm_closure",
srcs = ["bm_closure.cc"],
deps = ["//:grpc", "//external:benchmark"],
)

@ -33,6 +33,7 @@
/* Test various closure related operations */
#include <benchmark/benchmark.h>
#include <grpc/grpc.h>
extern "C" {
@ -41,8 +42,6 @@ extern "C" {
#include "src/core/lib/iomgr/exec_ctx.h"
}
#include "third_party/benchmark/include/benchmark/benchmark.h"
static class InitializeStuff {
public:
InitializeStuff() { grpc_init(); }

@ -35,6 +35,7 @@
#include <sstream>
#include <benchmark/benchmark.h>
#include <grpc++/channel.h>
#include <grpc++/create_channel.h>
#include <grpc++/impl/grpc_library.h>
@ -63,7 +64,6 @@ extern "C" {
#include "src/core/lib/profiling/timers.h"
#include "src/cpp/client/create_channel_internal.h"
#include "src/proto/grpc/testing/echo.grpc.pb.h"
#include "third_party/benchmark/include/benchmark/benchmark.h"
namespace grpc {
namespace testing {

Loading…
Cancel
Save