Classes | Namespaces | Functions
bm_closure.cc File Reference
#include <sstream>
#include <benchmark/benchmark.h>
#include <grpc/grpc.h>
#include "src/core/lib/gpr/spinlock.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/combiner.h"
#include "src/core/lib/iomgr/exec_ctx.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_closure.cc:

Go to the source code of this file.

Classes

class  Rescheduler
 

Namespaces

 benchmark
 

Functions

 BENCHMARK (BM_AcquireMutex)
 
 BENCHMARK (BM_AcquireSpinlock)
 
 BENCHMARK (BM_ClosureCreateAndRun)
 
 BENCHMARK (BM_ClosureInitAgainstCombiner)
 
 BENCHMARK (BM_ClosureInitAgainstExecCtx)
 
 BENCHMARK (BM_ClosureInitAndRun)
 
 BENCHMARK (BM_ClosureReschedOnExecCtx)
 
 BENCHMARK (BM_ClosureRun)
 
 BENCHMARK (BM_ClosureSched2OnCombiner)
 
 BENCHMARK (BM_ClosureSched2OnExecCtx)
 
 BENCHMARK (BM_ClosureSched2OnTwoCombiners)
 
 BENCHMARK (BM_ClosureSched3OnCombiner)
 
 BENCHMARK (BM_ClosureSched3OnExecCtx)
 
 BENCHMARK (BM_ClosureSched4OnTwoCombiners)
 
 BENCHMARK (BM_ClosureSchedOnCombiner)
 
 BENCHMARK (BM_ClosureSchedOnExecCtx)
 
 BENCHMARK (BM_NoOpExecCtx)
 
 BENCHMARK (BM_TryAcquireMutex)
 
 BENCHMARK (BM_TryAcquireSpinlock)
 
 BENCHMARK (BM_WellFlushed)
 
static void BM_AcquireMutex (benchmark::State &state)
 
static void BM_AcquireSpinlock (benchmark::State &state)
 
static void BM_ClosureCreateAndRun (benchmark::State &state)
 
static void BM_ClosureInitAgainstCombiner (benchmark::State &state)
 
static void BM_ClosureInitAgainstExecCtx (benchmark::State &state)
 
static void BM_ClosureInitAndRun (benchmark::State &state)
 
static void BM_ClosureReschedOnExecCtx (benchmark::State &state)
 
static void BM_ClosureRun (benchmark::State &state)
 
static void BM_ClosureSched2OnCombiner (benchmark::State &state)
 
static void BM_ClosureSched2OnExecCtx (benchmark::State &state)
 
static void BM_ClosureSched2OnTwoCombiners (benchmark::State &state)
 
static void BM_ClosureSched3OnCombiner (benchmark::State &state)
 
static void BM_ClosureSched3OnExecCtx (benchmark::State &state)
 
static void BM_ClosureSched4OnTwoCombiners (benchmark::State &state)
 
static void BM_ClosureSchedOnCombiner (benchmark::State &state)
 
static void BM_ClosureSchedOnExecCtx (benchmark::State &state)
 
static void BM_NoOpExecCtx (benchmark::State &state)
 
static void BM_TryAcquireMutex (benchmark::State &state)
 
static void BM_TryAcquireSpinlock (benchmark::State &state)
 
static void BM_WellFlushed (benchmark::State &state)
 
static void DoNothing (void *, grpc_error_handle)
 
int main (int argc, char **argv)
 
void benchmark::RunTheBenchmarksNamespaced ()
 

Function Documentation

◆ BENCHMARK() [1/20]

BENCHMARK ( BM_AcquireMutex  )

◆ BENCHMARK() [2/20]

BENCHMARK ( BM_AcquireSpinlock  )

◆ BENCHMARK() [3/20]

BENCHMARK ( BM_ClosureCreateAndRun  )

◆ BENCHMARK() [4/20]

◆ BENCHMARK() [5/20]

◆ BENCHMARK() [6/20]

BENCHMARK ( BM_ClosureInitAndRun  )

◆ BENCHMARK() [7/20]

BENCHMARK ( BM_ClosureReschedOnExecCtx  )

◆ BENCHMARK() [8/20]

BENCHMARK ( BM_ClosureRun  )

◆ BENCHMARK() [9/20]

BENCHMARK ( BM_ClosureSched2OnCombiner  )

◆ BENCHMARK() [10/20]

BENCHMARK ( BM_ClosureSched2OnExecCtx  )

◆ BENCHMARK() [11/20]

◆ BENCHMARK() [12/20]

BENCHMARK ( BM_ClosureSched3OnCombiner  )

◆ BENCHMARK() [13/20]

BENCHMARK ( BM_ClosureSched3OnExecCtx  )

◆ BENCHMARK() [14/20]

◆ BENCHMARK() [15/20]

BENCHMARK ( BM_ClosureSchedOnCombiner  )

◆ BENCHMARK() [16/20]

BENCHMARK ( BM_ClosureSchedOnExecCtx  )

◆ BENCHMARK() [17/20]

BENCHMARK ( BM_NoOpExecCtx  )

◆ BENCHMARK() [18/20]

BENCHMARK ( BM_TryAcquireMutex  )

◆ BENCHMARK() [19/20]

BENCHMARK ( BM_TryAcquireSpinlock  )

◆ BENCHMARK() [20/20]

BENCHMARK ( BM_WellFlushed  )

◆ BM_AcquireMutex()

static void BM_AcquireMutex ( benchmark::State state)
static

Definition at line 176 of file bm_closure.cc.

◆ BM_AcquireSpinlock()

static void BM_AcquireSpinlock ( benchmark::State state)
static

Definition at line 213 of file bm_closure.cc.

◆ BM_ClosureCreateAndRun()

static void BM_ClosureCreateAndRun ( benchmark::State state)
static

Definition at line 96 of file bm_closure.cc.

◆ BM_ClosureInitAgainstCombiner()

static void BM_ClosureInitAgainstCombiner ( benchmark::State state)
static

Definition at line 68 of file bm_closure.cc.

◆ BM_ClosureInitAgainstExecCtx()

static void BM_ClosureInitAgainstExecCtx ( benchmark::State state)
static

Definition at line 57 of file bm_closure.cc.

◆ BM_ClosureInitAndRun()

static void BM_ClosureInitAndRun ( benchmark::State state)
static

Definition at line 110 of file bm_closure.cc.

◆ BM_ClosureReschedOnExecCtx()

static void BM_ClosureReschedOnExecCtx ( benchmark::State state)
static

Definition at line 381 of file bm_closure.cc.

◆ BM_ClosureRun()

static void BM_ClosureRun ( benchmark::State state)
static

Definition at line 83 of file bm_closure.cc.

◆ BM_ClosureSched2OnCombiner()

static void BM_ClosureSched2OnCombiner ( benchmark::State state)
static

Definition at line 262 of file bm_closure.cc.

◆ BM_ClosureSched2OnExecCtx()

static void BM_ClosureSched2OnExecCtx ( benchmark::State state)
static

Definition at line 139 of file bm_closure.cc.

◆ BM_ClosureSched2OnTwoCombiners()

static void BM_ClosureSched2OnTwoCombiners ( benchmark::State state)
static

Definition at line 303 of file bm_closure.cc.

◆ BM_ClosureSched3OnCombiner()

static void BM_ClosureSched3OnCombiner ( benchmark::State state)
static

Definition at line 281 of file bm_closure.cc.

◆ BM_ClosureSched3OnExecCtx()

static void BM_ClosureSched3OnExecCtx ( benchmark::State state)
static

Definition at line 156 of file bm_closure.cc.

◆ BM_ClosureSched4OnTwoCombiners()

static void BM_ClosureSched4OnTwoCombiners ( benchmark::State state)
static

Definition at line 324 of file bm_closure.cc.

◆ BM_ClosureSchedOnCombiner()

static void BM_ClosureSchedOnCombiner ( benchmark::State state)
static

Definition at line 246 of file bm_closure.cc.

◆ BM_ClosureSchedOnExecCtx()

static void BM_ClosureSchedOnExecCtx ( benchmark::State state)
static

Definition at line 125 of file bm_closure.cc.

◆ BM_NoOpExecCtx()

static void BM_NoOpExecCtx ( benchmark::State state)
static

Definition at line 35 of file bm_closure.cc.

◆ BM_TryAcquireMutex()

static void BM_TryAcquireMutex ( benchmark::State state)
static

Definition at line 193 of file bm_closure.cc.

◆ BM_TryAcquireSpinlock()

static void BM_TryAcquireSpinlock ( benchmark::State state)
static

Definition at line 228 of file bm_closure.cc.

◆ BM_WellFlushed()

static void BM_WellFlushed ( benchmark::State state)
static

Definition at line 44 of file bm_closure.cc.

◆ DoNothing()

static void DoNothing ( void *  ,
grpc_error_handle   
)
static

Definition at line 55 of file bm_closure.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 397 of file bm_closure.cc.



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