29 #ifndef JB_DEFAULTS_microbenchmark_warmup_iterations 30 #define JB_DEFAULTS_microbenchmark_warmup_iterations 100 33 #ifndef JB_DEFAULTS_microbenchmark_iterations 34 #define JB_DEFAULTS_microbenchmark_iterations 1000 37 #ifndef JB_DEFAULTS_microbenchmark_size 38 #define JB_DEFAULTS_microbenchmark_size 0 41 #ifndef JB_DEFAULTS_microbenchmark_verbose 42 #define JB_DEFAULTS_microbenchmark_verbose false 45 #ifndef JB_DEFAULTS_microbenchmark_reconfigure_thread 46 #define JB_DEFAULTS_microbenchmark_reconfigure_thread true 59 desc(
"warmup-iterations")
60 .help(
"The number of warmup iterations in the benchmark."),
64 .help(
"Number of iterations to run for a fixed size."),
68 "If set (and not zero) control the size of the test."),
72 "If true, dump the results of every test to stdout for" 73 " statistical analysis."),
77 .help(
"Some microbenchmarks test completely different " 79 ", settings, or even different algorithms for the " 81 " Use this option to configure such benchmarks" 82 ", most microbenchmarks will ignore it."),
85 desc(
"reconfigure-thread")
86 .help(
"If set reconfigure the main thread scheduling parameters" 87 "before running the benchmark. " 88 "The actual scheduling parameters are configured via the " 89 "--thread option. Unsetting this flag is useful when " 91 "with external scheduling parameter settings, e.g. chrt(1) " 95 desc(
"thread",
"thread")
96 .help(
"Configure how the main thread scheduling parameters are " 97 "set before running the benchmark. " 98 "By default we attempt to run the test in the FIFO " 99 "scheduling class, at the maximum allowable priority."),
103 "Define the prefix for the detailed results output." 104 " Often microbenchmark results are further analyzed with" 105 " tools such as R or Python scripts, in such cases prefixing" 106 " the output with the attributes of the test (size, test-case," 107 " system configuration, etc) can make it easier to mix the" 108 " output from multiple microbenchmarks into a single result." 109 " It is common, but not required, for these prefixes to be" 110 " a comma-separated list of values."),
Define defaults for program parameters.
#define JB_DEFAULTS_microbenchmark_size
#define JB_DEFAULTS_microbenchmark_reconfigure_thread
#define JB_DEFAULTS_microbenchmark_warmup_iterations
#define JB_DEFAULTS_microbenchmark_verbose
Hold the configuration to initialize threads.
microbenchmark_config()
Default constructor.
The top-level namespace for the JayBeams library.
#define JB_DEFAULTS_microbenchmark_iterations