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§
- Summary
Outcome - Outcome of the summary operation.
- Summary
Request - Request for summarizing multiple comparison receipts.
- Summary
Row - A single row in the summary table.
- Summary
UseCase - Use case for summarizing comparison receipts.