24#include <unordered_map>
26#include <nlohmann/adl_serializer.hpp>
27#include <nlohmann/json.hpp>
67struct adl_serializer<
std::unordered_map<stat_bench::util::Utf8String,
68 stat_bench::util::Utf8String>> {
78 for (
const auto& [key, value] : val) {
79 j[key.str()] = value.str();
92 for (
auto it = j.begin(); it != j.end(); ++it) {
105#ifndef STAT_BENCH_DOCUMENTATION
107NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
StatData, mean, max, min, median, variance,
108 standard_deviation, standard_error)
110NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
DurationData, stat, values)
116NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
MeasurementData, group_name, case_name,
117 params, measurer_name, iterations, samples, durations, custom_stat_outputs,
120NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(
121 RootData, started_at, finished_at, measurements)
Class of UTF-8 encoded string.
auto str() const noexcept -> const std::string &
Get the string.
Definition of structs to specify the structure of data files.
Namespace of nlohmann::json library.
Namespace of specification of data files.
Namespace of reporters of results of benchmarks.
Namespace of stat_bench source codes.
static void from_json(const json &j, stat_bench::util::Utf8String &val)
Convert JSON to a value.
static void to_json(json &j, const stat_bench::util::Utf8String &val)
Convert a value to JSON.
static void from_json(const json &j, std::unordered_map< stat_bench::util::Utf8String, stat_bench::util::Utf8String > &val)
Convert JSON to a value.
static void to_json(json &j, const std::unordered_map< stat_bench::util::Utf8String, stat_bench::util::Utf8String > &val)
Convert a value to JSON.
Struct of custom outputs without statistics.
Struct of custom outputs with statistics.
Struct of data in one case.
Struct of root objects in data files.
Struct of data of statistics.
Definition of Utf8String class.