2019-01-25 18:35:16 +00:00
|
|
|
#pragma once
|
|
|
|
#include "PerformanceTestInfo.h"
|
2019-01-28 16:20:29 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
2019-01-25 18:35:16 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class ReportBuilder
|
|
|
|
{
|
|
|
|
public:
|
2019-02-04 17:37:55 +00:00
|
|
|
ReportBuilder(const std::string & server_version_);
|
2020-03-18 00:57:00 +00:00
|
|
|
|
2019-01-25 18:35:16 +00:00
|
|
|
std::string buildFullReport(
|
|
|
|
const PerformanceTestInfo & test_info,
|
2019-02-04 17:37:55 +00:00
|
|
|
std::vector<TestStats> & stats,
|
|
|
|
const std::vector<std::size_t> & queries_to_run) const;
|
|
|
|
|
2020-03-18 00:57:00 +00:00
|
|
|
static std::string buildCompactReport(
|
2019-01-25 18:35:16 +00:00
|
|
|
const PerformanceTestInfo & test_info,
|
2019-02-04 17:37:55 +00:00
|
|
|
std::vector<TestStats> & stats,
|
2020-03-18 00:57:00 +00:00
|
|
|
const std::vector<std::size_t> & queries_to_run);
|
2019-02-04 17:37:55 +00:00
|
|
|
|
2019-01-25 18:35:16 +00:00
|
|
|
private:
|
|
|
|
std::string server_version;
|
|
|
|
std::string hostname;
|
|
|
|
size_t num_cores;
|
|
|
|
size_t num_threads;
|
|
|
|
size_t ram;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|