cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
|
Definition of macros for benchmarks. More...
#include "stat_bench/bench_impl/benchmark_case_register.h"
#include "stat_bench/bench_impl/benchmark_group_register.h"
#include "stat_bench/bench_impl/case_impl.h"
#include "stat_bench/bench_impl/default_main.h"
#include "stat_bench/bench_impl/group_impl.h"
#include "stat_bench/bench_impl/measure_impl.h"
#include "stat_bench/bench_impl/unique_name.h"
#include "stat_bench/fixture_base.h"
Go to the source code of this file.
Macros | |
#define | STAT_BENCH_CASE(GROUP_NAME, CASE_NAME) |
Macro to define a case. | |
#define | STAT_BENCH_CASE_F(FIXTURE_NAME, GROUP_NAME, CASE_NAME) |
Macro to define a case using a fixture. | |
#define | STAT_BENCH_GROUP(GROUP_NAME) |
Macro to define and configure a group. | |
#define | STAT_BENCH_MAIN STAT_BENCH_IMPL_DEFAULT_MAIN |
Macro of default main function. | |
#define | STAT_BENCH_MEASURE() |
Macro to measure a function. | |
#define | STAT_BENCH_MEASURE_INDEXED( THREAD_INDEX_VAR, SAMPLE_INDEX_VAR, ITERATION_INDEX_VAR) |
Macro to measure a function. | |
Definition of macros for benchmarks.
Definition in file benchmark_macros.h.
#define STAT_BENCH_CASE | ( | GROUP_NAME, | |
CASE_NAME ) |
Macro to define a case.
[in] | GROUP_NAME | Group name. |
[in] | CASE_NAME | Case name. |
Definition at line 55 of file benchmark_macros.h.
#define STAT_BENCH_CASE_F | ( | FIXTURE_NAME, | |
GROUP_NAME, | |||
CASE_NAME ) |
Macro to define a case using a fixture.
[in] | FIXTURE_NAME | Fixture name. |
[in] | GROUP_NAME | Group name. |
[in] | CASE_NAME | Case name. |
Definition at line 67 of file benchmark_macros.h.
#define STAT_BENCH_GROUP | ( | GROUP_NAME | ) |
Macro to define and configure a group.
[in] | GROUP_NAME | Group name. |
This macro returns stat_bench::bench_impl::BenchmarkGroupRegister object. You can use this macro to configure a group like following:
Definition at line 45 of file benchmark_macros.h.
#define STAT_BENCH_MAIN STAT_BENCH_IMPL_DEFAULT_MAIN |
Macro of default main function.
Definition at line 95 of file benchmark_macros.h.
#define STAT_BENCH_MEASURE | ( | ) |
Macro to measure a function.
Definition at line 88 of file benchmark_macros.h.
#define STAT_BENCH_MEASURE_INDEXED | ( | THREAD_INDEX_VAR, | |
SAMPLE_INDEX_VAR, | |||
ITERATION_INDEX_VAR ) |
Macro to measure a function.
[in] | THREAD_INDEX_VAR | Variable name of the index of the thread. |
[in] | SAMPLE_INDEX_VAR | Variable name of the index of the sample. |
[in] | ITERATION_INDEX_VAR | Variable name of the index of the iteration. |
Definition at line 80 of file benchmark_macros.h.