cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
data_file_spec.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 <functional>
24#include <unordered_map>
25#include <vector>
26
28
29namespace stat_bench {
30namespace reporter {
31namespace data_file_spec {
32
36struct StatData {
38 float mean{};
39
41 float max{};
42
44 float min{};
45
47 float median{};
48
50 float variance{};
51
54
57};
58
65
67 std::vector<std::vector<float>> values{};
68};
69
76
79
81 std::vector<std::vector<float>> values{};
82};
83
94
101
104
106 std::unordered_map<util::Utf8String, util::Utf8String> params{};
107
110
112 std::size_t iterations{};
113
115 std::size_t samples{};
116
119
121 std::vector<CustomStatOutputData> custom_stat_outputs{};
122
124 std::vector<CustomOutputData> custom_outputs{};
125};
126
130struct RootData {
133
136
138 std::vector<MeasurementData> measurements{};
139};
140
141} // namespace data_file_spec
142} // namespace reporter
143} // namespace stat_bench
Class of UTF-8 encoded string.
Definition utf8_string.h:35
Namespace of specification of data files.
Namespace of reporters of results of benchmarks.
Namespace of stat_bench source codes.
Struct of custom outputs without statistics.
Struct of custom outputs with statistics.
std::vector< std::vector< float > > values
Values.
std::vector< std::vector< float > > values
Values.
std::vector< CustomStatOutputData > custom_stat_outputs
Custom outputs with statistics.
std::unordered_map< util::Utf8String, util::Utf8String > params
Parameters.
std::vector< CustomOutputData > custom_outputs
Custom outputs without statistics.
Struct of root objects in data files.
util::Utf8String finished_at
Timestamp on end.
util::Utf8String started_at
Timestamp on beginning.
std::vector< MeasurementData > measurements
Measurements.
Definition of Utf8String class.