5 #ifndef _HEBench_Harness_Config_H_0596d40a3cce4b108a81595c50eb286d
6 #define _HEBench_Harness_Config_H_0596d40a3cce4b108a81595c50eb286d
14 #include "hebench/modules/logging/include/logging.h"
19 namespace TestHarness {
38 std::vector<std::int8_t>
data;
68 static std::shared_ptr<BenchmarkConfigLoader>
create(
const std::string &yaml_filename,
69 std::uint64_t fallback_random_seed);
77 const std::vector<std::int8_t> &
getInitData()
const {
return m_data; }
91 std::string m_filename;
92 std::uint64_t m_random_seed;
93 std::uint64_t m_default_min_test_time_ms;
94 std::uint64_t m_default_sample_size;
95 std::vector<std::int8_t> m_data;
96 std::shared_ptr<void> m_yaml_content;
110 std::uint64_t random_seed = 0,
111 const std::string s_backend = std::string());
125 std::weak_ptr<hebench::TestHarness::Engine> m_wp_engine;
126 std::string m_s_backend;
Specifies a benchmark configuration.
Provides facilities to configure the selection of benchmarks to run based on the supported workloads ...
BenchmarkSession importConfiguration(const BenchmarkConfigLoader &loader) const
Imports a benchmark configuration from a configurator loader.
BenchmarkConfigBroker(std::weak_ptr< hebench::TestHarness::Engine > wp_engine, std::uint64_t random_seed=0, const std::string s_backend=std::string())
const BenchmarkSession & getDefaultConfiguration() const
void exportConfiguration(const std::string &yaml_filename, const BenchmarkSession &bench_configs) const
BenchmarkConfigLoader(const BenchmarkConfigLoader &&)=delete
const std::string & getFilename() const
Retrieves the file name used to load the yaml data.
static std::shared_ptr< BenchmarkConfigLoader > create(const std::string &yaml_filename, std::uint64_t fallback_random_seed)
Loads a benchmark configuration from yaml data contained in a file.
BenchmarkConfigLoader(const BenchmarkConfigLoader &)=delete
const void * getYAMLContent(const FriendKey &) const
std::uint64_t getRandomSeed() const
Retrieves the configuration random seed.
std::uint64_t getDefaultMinTestTimeMs() const
const std::vector< std::int8_t > & getInitData() const
std::uint64_t getDefaultSampleSize() const
std::vector< BenchmarkRequest > benchmark_requests
hebench::TestHarness::BenchmarkDescription::Configuration configuration
std::uint64_t random_seed
std::vector< std::int8_t > data