perfgate-export
Export formats for perfgate benchmarks.
Part of the perfgate workspace.
Overview
Provides functionality for exporting run and compare receipts to various formats suitable for trend analysis and time-series ingestion.
Supported Formats
| Format | Description |
|---|---|
| CSV | RFC 4180 compliant with header row |
| JSONL | JSON Lines (one JSON object per line) |
| HTML | HTML summary table |
| Prometheus | Prometheus text exposition format |
| JUnit | JUnit XML for legacy CI reporters |
Key API
ExportFormat— enum of supported formats (Csv, Jsonl, Html, Prometheus, JUnit)ExportFormat::parse(s)— parse format from stringExportUseCase::export_run(receipt, format)— export a run receiptExportUseCase::export_compare(receipt, format)— export a compare receiptRunExportRow/CompareExportRow— typed row structures
Example
use ;
// Export a run receipt to CSV
let csv = export_run?;
// Export a compare receipt to Prometheus format
let prom = export_compare?;
License
Licensed under either Apache-2.0 or MIT.