cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
|
Class of registry of cases of benchmarks. More...
#include <stat_bench/bench_impl/benchmark_case_registry.h>
Public Member Functions | |
BenchmarkCaseRegistry ()=default | |
Constructor. | |
void | add (std::shared_ptr< IBenchmarkCase > bench_case) |
Add a case. | |
auto | add_or_get_group (const BenchmarkGroupName &name) -> BenchmarkGroup & |
Add a group if not exists, and return it. | |
auto | benchmarks () const noexcept -> const util::OrderedMap< BenchmarkGroupName, BenchmarkGroup > & |
Get benchmarks. | |
void | filter_by (const filters::ComposedFilter &filter) |
Filter. | |
Static Public Member Functions | |
static auto | instance () -> BenchmarkCaseRegistry & |
Get an instance of the registry. | |
Class of registry of cases of benchmarks.
Definition at line 36 of file benchmark_case_registry.h.
void stat_bench::bench_impl::BenchmarkCaseRegistry::add | ( | std::shared_ptr< IBenchmarkCase > | bench_case | ) |
Add a case.
[in] | bench_case | Case. |
Definition at line 31 of file benchmark_case_registry.cpp.
auto stat_bench::bench_impl::BenchmarkCaseRegistry::add_or_get_group | ( | const BenchmarkGroupName & | name | ) | -> BenchmarkGroup& |
Add a group if not exists, and return it.
[in] | name | Name of the group. |
Definition at line 37 of file benchmark_case_registry.cpp.
|
nodiscardnoexcept |
Get benchmarks.
Definition at line 55 of file benchmark_case_registry.cpp.
void stat_bench::bench_impl::BenchmarkCaseRegistry::filter_by | ( | const filters::ComposedFilter & | filter | ) |
|
staticnodiscard |
Get an instance of the registry.
Definition at line 60 of file benchmark_case_registry.cpp.