59 std::vector<std::vector<clock::Duration>>
durations,
60 std::vector<std::shared_ptr<stat::CustomStatOutput>>
72 custom_stat_.reserve(custom_stat_outputs_.size());
73 for (
const auto& out : custom_stat_outputs_) {
74 out->preprocess(durations_);
75 custom_stat_.push_back(out->stat());
104 return measurement_type_;
121 [[nodiscard]]
auto samples() const noexcept -> const
std::
size_t& {
133 -> const
std::vector<
std::vector<
clock::Duration>>& {
143 -> const
stat::Statistics& {
144 return durations_stat_;
153 -> const
std::vector<
std::shared_ptr<
stat::CustomStatOutput>>& {
154 return custom_stat_outputs_;
163 -> const
std::vector<
stat::Statistics>& {
174 return custom_outputs_;
188 std::size_t iterations_;
191 std::size_t samples_;
194 std::vector<std::vector<clock::Duration>> durations_;
200 std::vector<std::shared_ptr<stat::CustomStatOutput>> custom_stat_outputs_;
203 std::vector<stat::Statistics> custom_stat_;
206 std::vector<std::pair<CustomOutputName, double>> custom_outputs_;
Definition of BenchmarkCondition class.
Definition of BenchmarkFullName class.
Declaration of calc_stat function.
Class of conditions of benchmarks.
Class of information of cases in benchmarks.
Class of names of custom outputs.
Class of names of measurement types.
auto measurement_type() const noexcept -> const MeasurementType &
Get the name of the measurer.
auto custom_stat() const noexcept -> const std::vector< stat::Statistics > &
Get the statistics of custom outputs.
auto durations() const noexcept -> const std::vector< std::vector< clock::Duration > > &
Get the measured durations.
auto iterations() const noexcept -> const std::size_t &
Get the number of iterations.
auto samples() const noexcept -> const std::size_t &
Get the number of samples.
auto cond() const noexcept -> const BenchmarkCondition &
Get the condition.
Measurement(BenchmarkFullName case_info, BenchmarkCondition cond, MeasurementType measurement_type, std::size_t iterations, std::size_t samples, std::vector< std::vector< clock::Duration > > durations, std::vector< std::shared_ptr< stat::CustomStatOutput > > custom_stat_outputs, std::vector< std::pair< CustomOutputName, double > > custom_outputs)
Constructor.
auto custom_stat_outputs() const noexcept -> const std::vector< std::shared_ptr< stat::CustomStatOutput > > &
Get the custom outputs with statistics.
auto case_info() const noexcept -> const BenchmarkFullName &
Get the information of the case.
auto durations_stat() const noexcept -> const stat::Statistics &
Get the statistics of durations.
auto custom_outputs() const noexcept -> const std::vector< std::pair< CustomOutputName, double > > &
Get the custom outputs without statistics.
Class to calculate statistics.
Definition of CustomOutputName class.
Definition of CustomStatOutput class.
Definition of Duration class.
Definition of MeasurementType class.
Namespace of clocks for benchmarks.
Namespace of classes to measure time in benchmarks.
Namespace of stat_bench source codes.
Definition of Statistics class.