cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 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
22#include <cstddef>
23#include <string>
24#include <vector>
25
26namespace stat_bench {
27namespace runner {
28
29namespace impl {
30
32static constexpr std::size_t default_processing_time_samples = 100;
33
35static constexpr std::size_t default_mean_processing_time_samples = 30;
36
41static constexpr double default_min_sample_duration_sec = 0.03;
42
44static constexpr std::size_t default_min_warming_up_iterations = 1;
45
47static constexpr double default_min_warming_up_duration_sec = 0.03;
48
49} // namespace impl
50
119
120} // namespace runner
121} // namespace stat_bench
static constexpr std::size_t default_processing_time_samples
Default number of samples for measurements of processing time.
Definition config.h:32
static constexpr std::size_t default_mean_processing_time_samples
Default number of samples for measurement of mean processing time.
Definition config.h:35
static constexpr double default_min_warming_up_duration_sec
Default minimum duration for warming up. [sec].
Definition config.h:47
static constexpr double default_min_sample_duration_sec
Default minimum duration of a sample for measurement of mean processing time. [sec].
Definition config.h:41
static constexpr std::size_t default_min_warming_up_iterations
Default minimum number of iterations for warming up.
Definition config.h:44
Namespace of classes to run benchmarks.
Namespace of stat_bench source codes.
Class of configurations.
Definition config.h:54
std::vector< std::string > include_regex
Regular expressions of benchmark names to include.
Definition config.h:114
std::size_t min_warming_up_iterations
Minimum number of iterations for warming up.
Definition config.h:72
std::string json_file_path
File path of JSON data file.
Definition config.h:91
std::string msgpack_file_path
File path of MsgPack data file.
Definition config.h:98
std::size_t processing_time_samples
Number of samples for measurements of processing time.
Definition config.h:59
double min_warming_up_duration_sec
Minimum duration for warming up. [sec].
Definition config.h:76
double min_sample_duration_sec
Minimum duration of a sample for measurement of mean processing time. [sec].
Definition config.h:69
std::string plot_prefix
Prefix of filepaths to generate plots.
Definition config.h:84
std::vector< std::string > include_glob
Glob patterns of benchmark names to include.
Definition config.h:108
std::size_t mean_processing_time_samples
Number of samples for measurements of mean processing time.
Definition config.h:62
std::vector< std::string > exclude_regex
Regular expressions of benchmark names to exclude.
Definition config.h:117
std::vector< std::string > exclude_glob
Glob patterns of benchmark names to exclude.
Definition config.h:111
std::string compressed_msgpack_file_path
File path of compressed MsgPack data file.
Definition config.h:105
bool show_help
Whether to show help.
Definition config.h:56