Go to the documentation of this file.
23 #include <benchmark/benchmark.h>
83 void*
tag =
reinterpret_cast<void*
>(10);
103 vtable.is_any_background_poller_thread = [] {
return false; };
108 vtable.shutdown_background_closure = [] {};
109 vtable.shutdown_engine = [] {};
110 vtable.check_engine_available = [](
bool) {
return true; };
111 vtable.init_engine = [] {};
162 auto thd_idx =
state.thread_index();
224 int main(
int argc,
char** argv) {
struct grpc_pollset_worker grpc_pollset_worker
void InitTest(int *argc, char ***argv, bool remove_flags)
GPRAPI void gpr_mu_unlock(gpr_mu *mu)
static const grpc_transport_vtable vtable
static grpc_error_handle pollset_work(grpc_pollset *ps, grpc_pollset_worker **, grpc_core::Timestamp deadline)
gpr_free(creds_file_name)
return memset(p, 0, total)
GPRAPI gpr_timespec gpr_time_0(gpr_clock_type type)
void grpc_register_event_engine_factory(const grpc_event_engine_vtable *vtable, bool add_at_head)
GPRAPI void * gpr_malloc(size_t size)
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
void grpc_cq_end_op(grpc_completion_queue *cq, void *tag, grpc_error_handle error, void(*done)(void *done_arg, grpc_cq_completion *storage), void *done_arg, grpc_cq_completion *storage, bool internal)
void RunTheBenchmarksNamespaced()
const char * grpc_get_poll_strategy_name()
virtual void Finish(benchmark::State &state)
static void cq_done_cb(void *, grpc_cq_completion *cq_completion)
GPRAPI void gpr_mu_destroy(gpr_mu *mu)
size_t RunSpecifiedBenchmarks()
static grpc_completion_queue * g_cq
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
GPRAPI void gpr_mu_init(gpr_mu *mu)
GPRAPI int gpr_cv_wait(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline)
GPRAPI void gpr_mu_lock(gpr_mu *mu)
void Initialize(int *argc, char **argv)
struct grpc_pollset grpc_pollset
static constexpr Timestamp ProcessEpoch()
static int g_threads_active
static void BM_Cq_Throughput(benchmark::State &state)
static void * tag(intptr_t t)
bool grpc_cq_begin_op(grpc_completion_queue *cq, void *tag)
static const int BENCHMARK
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
static void pollset_destroy(grpc_pollset *ps)
GRPCAPI grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved)
GRPCAPI void grpc_completion_queue_shutdown(grpc_completion_queue *cq)
static void pollset_shutdown(grpc_pollset *, grpc_closure *closure)
static void Run(const DebugLocation &location, grpc_closure *closure, grpc_error_handle error)
GPRAPI void gpr_cv_broadcast(gpr_cv *cv)
static grpc_event_engine_vtable make_engine_vtable(const char *name)
GRPCAPI grpc_completion_queue * grpc_completion_queue_create_for_next(void *reserved)
int main(int argc, char **argv)
GRPCAPI void grpc_init(void)
static grpc_error_handle pollset_kick(grpc_pollset *, grpc_pollset_worker *)
GRPCAPI void grpc_shutdown(void)
GPRAPI void gpr_cv_init(gpr_cv *cv)
static void pollset_init(grpc_pollset *ps, gpr_mu **mu)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:48