pull/9977/head
Craig Tiller 8 years ago
parent 5e3215338f
commit e4a2419597
  1. 2
      test/cpp/microbenchmarks/bm_call_create.cc
  2. 2
      test/cpp/microbenchmarks/bm_chttp2_hpack.cc
  3. 4
      test/cpp/microbenchmarks/bm_closure.cc
  4. 2
      test/cpp/microbenchmarks/bm_cq.cc
  5. 2
      test/cpp/microbenchmarks/bm_error.cc
  6. 2
      test/cpp/microbenchmarks/bm_metadata.cc

@ -58,6 +58,8 @@ extern "C" {
#include "test/cpp/microbenchmarks/helpers.h"
#include "third_party/benchmark/include/benchmark/benchmark.h"
auto &force_library_initialization = Library::get();
class BaseChannelFixture {
public:
BaseChannelFixture(grpc_channel *channel) : channel_(channel) {}

@ -45,6 +45,8 @@ extern "C" {
#include "test/cpp/microbenchmarks/helpers.h"
#include "third_party/benchmark/include/benchmark/benchmark.h"
auto &force_library_initialization = Library::get();
////////////////////////////////////////////////////////////////////////////////
// HPACK encoder
//

@ -45,9 +45,7 @@ extern "C" {
#include "test/cpp/microbenchmarks/helpers.h"
#include "third_party/benchmark/include/benchmark/benchmark.h"
#ifdef GPR_LOW_LEVEL_COUNTERS
extern "C" gpr_atm gpr_mu_locks;
#endif
auto& force_library_initialization = Library::get();
static void BM_NoOpExecCtx(benchmark::State& state) {
TrackCounters track_counters;

@ -48,6 +48,8 @@ extern "C" {
namespace grpc {
namespace testing {
auto& force_library_initialization = Library::get();
static void BM_CreateDestroyCpp(benchmark::State& state) {
TrackCounters track_counters;
while (state.KeepRunning()) {

@ -43,6 +43,8 @@ extern "C" {
#include "test/cpp/microbenchmarks/helpers.h"
#include "third_party/benchmark/include/benchmark/benchmark.h"
auto& force_library_initialization = Library::get();
class ErrorDeleter {
public:
void operator()(grpc_error* error) { GRPC_ERROR_UNREF(error); }

@ -43,6 +43,8 @@ extern "C" {
#include "test/cpp/microbenchmarks/helpers.h"
#include "third_party/benchmark/include/benchmark/benchmark.h"
auto& force_library_initialization = Library::get();
static void BM_SliceFromStatic(benchmark::State& state) {
TrackCounters track_counters;
while (state.KeepRunning()) {

Loading…
Cancel
Save