cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
benchmark_group_register.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
26
27namespace stat_bench {
28namespace bench_impl {
29
34public:
40 explicit BenchmarkGroupRegister(const BenchmarkGroupName& name) noexcept;
41
51 PlotOptions options = PlotOptions()) noexcept
53
64 [[deprecated("Use add_parameter_to_time_line_plot instead.")]] auto
66 util::StringView parameter_name) noexcept -> BenchmarkGroupRegister&;
67
77 PlotOptions options = PlotOptions()) noexcept
79
89 PlotOptions options = PlotOptions()) noexcept
91
102 util::StringView custom_output_name,
103 PlotOptions options = PlotOptions()) noexcept
105
116 util::StringView parameter_name, util::StringView custom_output_name,
117 PlotOptions options = PlotOptions()) noexcept
119
120private:
122 BenchmarkGroup* group_{nullptr};
123};
124
125} // namespace bench_impl
126} // namespace stat_bench
Definition of BenchmarkGroup class.
Definition of BenchmarkGroupName class.
Class of names of groups of benchmarks.
Class of options for plots.
auto add_parameter_to_output_line_plot(util::StringView parameter_name, util::StringView custom_output_name, PlotOptions options=PlotOptions()) noexcept -> BenchmarkGroupRegister &
Add a line plot of a custom output with respect to a parameter to the group.
auto add_parameter_to_time_line_plot(util::StringView parameter_name, PlotOptions options=PlotOptions()) noexcept -> BenchmarkGroupRegister &
Add a line plot of processing time with respect to a parameter to the group.
auto add_parameter_to_time_box_plot(util::StringView parameter_name, PlotOptions options=PlotOptions()) noexcept -> BenchmarkGroupRegister &
Add a box plot of processing time with respect to a parameter to the group.
auto add_time_to_output_by_parameter_line_plot(util::StringView parameter_name, util::StringView custom_output_name, PlotOptions options=PlotOptions()) noexcept -> BenchmarkGroupRegister &
Add a line plot of a custom output with respect to processing time while parameter changes.
auto add_parameter_to_time_violin_plot(util::StringView parameter_name, PlotOptions options=PlotOptions()) noexcept -> BenchmarkGroupRegister &
Add a violin plot of processing time with respect to a parameter to the group.
BenchmarkGroupRegister(const BenchmarkGroupName &name) noexcept
Constructor.
auto add_parameter_to_time_line_plot_log(util::StringView parameter_name) noexcept -> BenchmarkGroupRegister &
Add a line plot of processing time with respect to a parameter in the log scale to the group.
Class of groups of cases in benchmarks.
Class of view of strings.
Definition string_view.h:34
Namespace of internal implementation.
Namespace of stat_bench source codes.
Definition of PlotOptions class.
Declaration of check_glob_pattern function.