58 std::vector<std::vector<clock::Duration>>
durations,
59 std::vector<std::shared_ptr<stat::CustomStatOutput>>
71 custom_stat_.reserve(custom_stat_outputs_.size());
72 for (
const auto& out : custom_stat_outputs_) {
73 out->preprocess(durations_);
74 custom_stat_.push_back(out->stat());
102 return measurer_name_;
119 [[nodiscard]]
auto samples() const noexcept -> const
std::
size_t& {
131 -> const
std::vector<
std::vector<
clock::Duration>>& {
141 -> const
stat::Statistics& {
142 return durations_stat_;
151 -> const
std::vector<
std::shared_ptr<
stat::CustomStatOutput>>& {
152 return custom_stat_outputs_;
161 -> const
std::vector<
stat::Statistics>& {
172 return custom_outputs_;
186 std::size_t iterations_;
189 std::size_t samples_;
192 std::vector<std::vector<clock::Duration>> durations_;
198 std::vector<std::shared_ptr<stat::CustomStatOutput>> custom_stat_outputs_;
201 std::vector<stat::Statistics> custom_stat_;
204 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.
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.
Measurement(BenchmarkFullName case_info, BenchmarkCondition cond, MeasurerName measurer_name, 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 cond() const noexcept -> const BenchmarkCondition &
Get the condition.
auto measurer_name() const noexcept -> const MeasurerName &
Get the name of the measurer.
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 of names of measurers.
Class to calculate statistics.
Definition of CustomOutputName class.
Definition of CustomStatOutput class.
Definition of Duration class.
Definition of MeasurerName class.
Namespace of clocks for benchmarks.
Namespace of classes to measure time in benchmarks.
Namespace of stat_bench source codes.
Definition of Statistics class.