#include <chrono>#include <thread>#include "../src/timers.h"#include "benchmark/benchmark.h"#include "output_test.h"
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()) |
| 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 | ) |
Definition at line 36 of file internal_threading_test.cc.
| void BM_MainThreadAndWorkerThread | ( | benchmark::State & | state | ) |
Definition at line 121 of file internal_threading_test.cc.
| void BM_WorkerThread | ( | benchmark::State & | state | ) |
Definition at line 78 of file internal_threading_test.cc.
| Iterations | ( | 1 | ) | -> Threads(1) ->MeasureProcessCPUTime() ->UseRealTime() |
Definition at line 184 of file internal_threading_test.cc.
| void MyBusySpinwait | ( | ) |
Definition at line 16 of file internal_threading_test.cc.
|
static |
|
static |