cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
data_file_helper.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 <memory>
23#include <unordered_map>
24#include <utility>
25#include <vector>
26
35
36namespace stat_bench {
37namespace reporter {
38namespace data_file_spec {
39
46[[nodiscard]] auto convert(const param::ParameterDict& params)
47 -> std::unordered_map<util::Utf8String, util::Utf8String>;
48
55[[nodiscard]] auto convert(const stat::Statistics& stat) -> StatData;
56
64[[nodiscard]] auto convert(
65 const std::vector<std::vector<clock::Duration>>& durations,
66 const stat::Statistics& durations_stat) -> DurationData;
67
75[[nodiscard]] auto convert(
76 const std::shared_ptr<stat::CustomStatOutput>& stat_output,
78
86[[nodiscard]] auto convert(
87 const std::vector<std::shared_ptr<stat::CustomStatOutput>>& stat_outputs,
88 const std::vector<stat::Statistics>& stats)
89 -> std::vector<CustomStatOutputData>;
90
97[[nodiscard]] auto convert(
98 const std::vector<std::pair<CustomOutputName, double>>& outputs)
99 -> std::vector<CustomOutputData>;
100
107[[nodiscard]] auto convert(const measurer::Measurement& measurement)
109
110} // namespace data_file_spec
111} // namespace reporter
112} // namespace stat_bench
Class of data of measurements.
Definition measurement.h:42
Class of dictionaries of parameters.
Class to calculate statistics.
Definition statistics.h:31
Definition of CustomOutputName class.
Definition of CustomStatOutput class.
Definition of structs to specify the structure of data files.
Definition of Duration class.
Definition of Measurement class.
Namespace of specification of data files.
auto convert(const param::ParameterDict &params) -> std::unordered_map< util::Utf8String, util::Utf8String >
Convert to data for data files.
Namespace of reporters of results of benchmarks.
Namespace of statistics.
Definition calc_stat.h:29
Namespace of stat_bench source codes.
Definition of ParameterDict class.
Definition of Statistics class.
Struct of custom outputs with statistics.
Definition of Utf8String class.