unity.scopes.testing.Benchmark.TrialConfiguration

The TrialConfiguration struct contains options controlling the execution of individual trials. More...

#include <unity/scopes/testing/Benchmark.h>

Public Attributes

std::size_t trial_count {25}
 
std::chrono::microseconds per_trial_timeout {std::chrono::seconds{10}}
 
StatisticsConfiguration statistics_configuration {}
 

Detailed Description

The TrialConfiguration struct contains options controlling the execution of individual trials.

Member Data Documentation

std::chrono::microseconds unity::scopes::testing::Benchmark::TrialConfiguration::per_trial_timeout {std::chrono::seconds{10}}

Wait at most this time for one trial to finish or throw if a timeout is encountered.

StatisticsConfiguration unity::scopes::testing::Benchmark::TrialConfiguration::statistics_configuration {}

Fold in statistics configuration into the overall trial setup.

std::size_t unity::scopes::testing::Benchmark::TrialConfiguration::trial_count {25}

The number of independent trials. Please note that the number should not be << 10