1#pragma once
2#include "PerformanceTestInfo.h"
3#include <vector>
4#include <string>
5
6namespace DB
7{
8
9class ReportBuilder
10{
11public:
12 ReportBuilder(const std::string & server_version_);
13 std::string buildFullReport(
14 const PerformanceTestInfo & test_info,
15 std::vector<TestStats> & stats,
16 const std::vector<std::size_t> & queries_to_run) const;
17
18
19 std::string buildCompactReport(
20 const PerformanceTestInfo & test_info,
21 std::vector<TestStats> & stats,
22 const std::vector<std::size_t> & queries_to_run) const;
23
24private:
25 std::string server_version;
26 std::string hostname;
27 size_t num_cores;
28 size_t num_threads;
29 size_t ram;
30
31private:
32 std::string getCurrentTime() const;
33
34};
35
36}
37