cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
msgpack_data_file_helper.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 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 <msgpack_light/serialization_buffer.h>
23#include <msgpack_light/type_support/fwd.h>
24#include <msgpack_light/type_support/struct.h>
25#include <msgpack_light/type_support/unordered_map.h> // IWYU pragma: keep
26
29
31
36template <>
37struct serialization_traits<stat_bench::util::Utf8String> {
44 static void serialize(serialization_buffer& buffer,
45 const stat_bench::util::Utf8String& value) {
46 buffer.serialize(value.str());
47 }
48};
49
50} // namespace msgpack_light::type_support
51
52#ifndef STAT_BENCH_DOCUMENTATION
53
54MSGPACK_LIGHT_STRUCT_MAP(stat_bench::reporter::data_file_spec::StatData, mean,
55 max, min, median, variance, standard_deviation, standard_error);
56MSGPACK_LIGHT_STRUCT_MAP(
58MSGPACK_LIGHT_STRUCT_MAP(
60 values);
61MSGPACK_LIGHT_STRUCT_MAP(
64 group_name, case_name, params, measurer_name, iterations, samples,
65 durations, custom_stat_outputs, custom_outputs);
67 started_at, finished_at, measurements);
68
69#endif
Class of UTF-8 encoded string.
Definition utf8_string.h:35
auto str() const noexcept -> const std::string &
Get the string.
Definition of structs to specify the structure of data files.
Namespace to support types.
Namespace of stat_bench source codes.
static void serialize(serialization_buffer &buffer, const stat_bench::util::Utf8String &value)
Serialize a value.
Struct of custom outputs without statistics.
Struct of custom outputs with statistics.
Struct of root objects in data files.
Definition of Utf8String class.