Skip to main content

Crate perfgate_summary

Crate perfgate_summary 

Source
Expand description

Summarization logic for perfgate comparison receipts.

Aggregates multiple comparison receipts into a compact summary table showing benchmark name, verdict status, wall-clock time, and percentage change.

Part of the perfgate workspace.

§Example

use perfgate_summary::{SummaryRequest, SummaryUseCase};

let uc = SummaryUseCase;
let outcome = uc.execute(SummaryRequest {
    files: vec!["artifacts/perfgate/*.compare.json".to_string()],
}).unwrap();
for row in &outcome.rows {
    println!("{}: {} ({})", row.benchmark, row.status, row.change_pct);
}

Structs§

SummaryOutcome
Outcome of the summary operation.
SummaryRequest
Request for summarizing multiple comparison receipts.
SummaryRow
A single row in the summary table.
SummaryUseCase
Use case for summarizing comparison receipts.