Classes | Namespaces | Functions | Variables
bm_chttp2_transport.cc File Reference
#include <string.h>
#include <memory>
#include <queue>
#include <sstream>
#include <benchmark/benchmark.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include <grpcpp/support/channel_arguments.h>
#include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"
#include "src/core/ext/transport/chttp2/transport/internal.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/resource_quota/api.h"
#include "src/core/lib/slice/slice_internal.h"
#include "test/core/util/test_config.h"
#include "test/cpp/microbenchmarks/helpers.h"
#include "test/cpp/util/test_config.h"
Include dependency graph for bm_chttp2_transport.cc:

Go to the source code of this file.

Classes

class  Fixture< kFilter, kFlags >
 
class  PhonyEndpoint
 
class  RepresentativeClientInitialMetadata
 
class  Stream
 
class  TestClosure
 

Namespaces

 benchmark
 

Functions

 BENCHMARK (BM_StreamCreateDestroy)
 
 BENCHMARK (BM_TransportEmptyOp)
 
 BENCHMARK_TEMPLATE (BM_StreamCreateSendInitialMetadataDestroy, RepresentativeClientInitialMetadata)
 
static void BM_StreamCreateDestroy (benchmark::State &state)
 
template<class Metadata >
static void BM_StreamCreateSendInitialMetadataDestroy (benchmark::State &state)
 
static void BM_TransportEmptyOp (benchmark::State &state)
 
int main (int argc, char **argv)
 
template<class F >
grpc_closureMakeOnceClosure (F f)
 
template<class F >
std::unique_ptr< TestClosureMakeTestClosure (F f)
 
void benchmark::RunTheBenchmarksNamespaced ()
 

Variables

std::vector< std::unique_ptr< gpr_event > > done_events
 
static auto * g_memory_allocator
 

Function Documentation

◆ BENCHMARK() [1/2]

BENCHMARK ( BM_StreamCreateDestroy  )

◆ BENCHMARK() [2/2]

BENCHMARK ( BM_TransportEmptyOp  )

◆ BENCHMARK_TEMPLATE()

◆ BM_StreamCreateDestroy()

static void BM_StreamCreateDestroy ( benchmark::State state)
static

Definition at line 268 of file bm_chttp2_transport.cc.

◆ BM_StreamCreateSendInitialMetadataDestroy()

template<class Metadata >
static void BM_StreamCreateSendInitialMetadataDestroy ( benchmark::State state)
static

Definition at line 322 of file bm_chttp2_transport.cc.

◆ BM_TransportEmptyOp()

static void BM_TransportEmptyOp ( benchmark::State state)
static

Definition at line 372 of file bm_chttp2_transport.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 421 of file bm_chttp2_transport.cc.

◆ MakeOnceClosure()

template<class F >
grpc_closure* MakeOnceClosure ( F  f)

Definition at line 186 of file bm_chttp2_transport.cc.

◆ MakeTestClosure()

template<class F >
std::unique_ptr<TestClosure> MakeTestClosure ( F  f)

Definition at line 172 of file bm_chttp2_transport.cc.

Variable Documentation

◆ done_events

std::vector<std::unique_ptr<gpr_event> > done_events

Definition at line 266 of file bm_chttp2_transport.cc.

◆ g_memory_allocator

auto* g_memory_allocator
static
Initial value:
grpc_core::ResourceQuota::Default()->memory_quota()->CreateMemoryAllocator(
"test"))

Definition at line 43 of file bm_chttp2_transport.cc.

grpc_event_engine::experimental::MemoryAllocator
Definition: memory_allocator.h:35
grpc_core::ResourceQuota::Default
static ResourceQuotaRefPtr Default()
Definition: resource_quota.cc:27


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04