ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::cli::BenchmarkReport Struct Reference

Benchmark report with comparison, display, and export. More...

#include <BenchmarkReport.hpp>

Classes

struct  Markdown
 Markdown style with emoji indicators. More...
 
struct  Style
 Display style for benchmark report output. More...
 
struct  Text
 Terminal style with ANSI color decorators. More...
 

Public Member Functions

 BenchmarkReport (SuiteResult const &r, std::optional< Baseline > const &b=std::nullopt)
 
void print (io::Output &out, Style const &style) const
 Print formatted results to the given output.
 
std::string to_csv () const
 Export report as CSV, including delta columns when baseline is present.
 
nlohmann::json to_json () const
 Export report as JSON, including deltas when baseline is present.
 

Public Attributes

double delta_threshold = 1.0
 

Detailed Description

Benchmark report with comparison, display, and export.

Constructed with the suite result and an optional baseline. Display style (terminal or markdown) is passed to print. Export methods (to_json, to_csv) are format-independent.

Constructor & Destructor Documentation

◆ BenchmarkReport()

ppforest2::cli::BenchmarkReport::BenchmarkReport ( SuiteResult const & r,
std::optional< Baseline > const & b = std::nullopt )
inlineexplicit

Member Function Documentation

◆ print()

void ppforest2::cli::BenchmarkReport::print ( io::Output & out,
Style const & style ) const

Print formatted results to the given output.

◆ to_csv()

std::string ppforest2::cli::BenchmarkReport::to_csv ( ) const

Export report as CSV, including delta columns when baseline is present.

◆ to_json()

nlohmann::json ppforest2::cli::BenchmarkReport::to_json ( ) const

Export report as JSON, including deltas when baseline is present.

Member Data Documentation

◆ delta_threshold

double ppforest2::cli::BenchmarkReport::delta_threshold = 1.0

The documentation for this struct was generated from the following file: