cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
box_plot.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
22#include <string>
23
26
27namespace stat_bench {
28namespace plots {
29
33class BoxPlot final : public IPlot {
34public:
38 BoxPlot() = default;
39
40 BoxPlot(const BoxPlot&) = delete;
41 BoxPlot(BoxPlot&&) = delete;
42 auto operator=(const BoxPlot&) -> BoxPlot& = delete;
43 auto operator=(BoxPlot&&) -> BoxPlot& = delete;
44
48 ~BoxPlot() override = default;
49
51 [[nodiscard]] auto name_for_file() const
52 -> const util::Utf8String& override;
53
55 void write(const measurer::MeasurerName& measurer_name,
56 const BenchmarkGroupName& group_name,
57 const std::vector<measurer::Measurement>& measurements,
58 const std::string& file_path) override;
59
60private:
62 util::Utf8String name_for_file_{"box"};
63};
64
65} // namespace plots
66} // namespace stat_bench
Class of names of groups of benchmarks.
void write(const measurer::MeasurerName &measurer_name, const BenchmarkGroupName &group_name, const std::vector< measurer::Measurement > &measurements, const std::string &file_path) override
Write a plot.
Definition box_plot.cpp:40
auto name_for_file() const -> const util::Utf8String &override
Get a name for output files.
Definition box_plot.cpp:36
BoxPlot()=default
Constructor.
~BoxPlot() override=default
Destructor.
IPlot()=default
Constructor.
Definition of IPlot class.
Namespace of classes to measure time in benchmarks.
Namespace of plotting.
Definition box_plot.h:28
Namespace of utility functions and classes.
Namespace of stat_bench source codes.
STL namespace.
Definition of Utf8String class.