Functions
internal_threading_test.cc File Reference
#include <chrono>
#include <thread>
#include "../src/timers.h"
#include "benchmark/benchmark.h"
#include "output_test.h"
Include dependency graph for internal_threading_test.cc:

Go to the source code of this file.

Functions

 BENCHMARK (BM_MainThread) -> Iterations(1) ->Threads(1)
 
 BENCHMARK (BM_MainThreadAndWorkerThread) -> Iterations(1) ->Threads(1)
 
 BENCHMARK (BM_WorkerThread) -> Iterations(1) ->Threads(1)
 
void BM_MainThread (benchmark::State &state)
 
void BM_MainThreadAndWorkerThread (benchmark::State &state)
 
void BM_WorkerThread (benchmark::State &state)
 
 Iterations (1) -> Threads(1) ->MeasureProcessCPUTime() ->UseRealTime()
 
int main (int argc, char *argv[])
 
void MyBusySpinwait ()
 
static const std::chrono::duration< double, std::milli > time_frame (50)
 
static const double time_frame_in_sec (std::chrono::duration_cast< std::chrono::duration< double, std::ratio< 1, 1 >>>(time_frame) .count())
 

Function Documentation

◆ BENCHMARK() [1/3]

BENCHMARK ( BM_MainThread  ) -> Iterations(1) ->Threads(1)

◆ BENCHMARK() [2/3]

BENCHMARK ( BM_MainThreadAndWorkerThread  ) -> Iterations(1) ->Threads(1)

◆ BENCHMARK() [3/3]

BENCHMARK ( BM_WorkerThread  ) -> Iterations(1) ->Threads(1)

◆ BM_MainThread()

void BM_MainThread ( benchmark::State state)

Definition at line 36 of file internal_threading_test.cc.

◆ BM_MainThreadAndWorkerThread()

void BM_MainThreadAndWorkerThread ( benchmark::State state)

Definition at line 121 of file internal_threading_test.cc.

◆ BM_WorkerThread()

void BM_WorkerThread ( benchmark::State state)

Definition at line 78 of file internal_threading_test.cc.

◆ Iterations()

Iterations ( ) -> Threads(1) ->MeasureProcessCPUTime() ->UseRealTime()

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 184 of file internal_threading_test.cc.

◆ MyBusySpinwait()

void MyBusySpinwait ( )

Definition at line 16 of file internal_threading_test.cc.

◆ time_frame()

static const std::chrono::duration<double, std::milli> time_frame ( 50  )
static

◆ time_frame_in_sec()

static const double time_frame_in_sec ( std::chrono::duration_cast< std::chrono::duration< double, std::ratio< 1, 1 >>>  time_frame) .count()
static


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