aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/microbenchmarks
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-15 17:19:22 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-02-15 17:19:22 -0800
commita25c9b4aa06d74dec0e7d5346c64b86191a1632c (patch)
treefa2e46d18503378f0ea2a119e067d80bee8fcb48 /test/cpp/microbenchmarks
parent4bba37c228f886d457baa57203d4e90d735e1c78 (diff)
Call out no-filter case
Diffstat (limited to 'test/cpp/microbenchmarks')
-rw-r--r--test/cpp/microbenchmarks/bm_call_create.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cpp/microbenchmarks/bm_call_create.cc b/test/cpp/microbenchmarks/bm_call_create.cc
index c924b1a238..8fe69514f6 100644
--- a/test/cpp/microbenchmarks/bm_call_create.cc
+++ b/test/cpp/microbenchmarks/bm_call_create.cc
@@ -34,6 +34,8 @@
/* This benchmark exists to ensure that the benchmark integration is
* working */
+#include <sstream>
+
#include <grpc++/support/channel_arguments.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
@@ -241,6 +243,7 @@ static grpc_transport dummy_transport = {&dummy_transport_vtable};
template <class Fixture>
static void BM_FilterInitDestroy(benchmark::State &state) {
Fixture fixture;
+ std::ostringstream label;
std::vector<grpc_arg> args;
FakeClientChannelFactory fake_client_channel_factory;
@@ -256,6 +259,7 @@ static void BM_FilterInitDestroy(benchmark::State &state) {
}
if (fixture.flags & CHECKS_NOT_LAST) {
filters.push_back(&dummy_filter::dummy_filter);
+ label << " has_dummy_filter";
}
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
@@ -286,6 +290,8 @@ static void BM_FilterInitDestroy(benchmark::State &state) {
}
grpc_channel_stack_destroy(&exec_ctx, channel_stack);
grpc_exec_ctx_finish(&exec_ctx);
+
+ state.SetLabel(label.str());
}
typedef Fixture<nullptr, 0> NoFilter;