aggregate - Aggregate Results¶
Aggregate multiple benchmark result files into a CSV file for performance trend tracking and downstream analysis.
Basic Syntax¶
benchbox aggregate --input-dir <path> --output-file <path> [OPTIONS]
Options¶
Required:
--input-dir PATH: Directory containing result JSON files (searched recursively)--output-file PATH: Output CSV file path
Optional:
--benchmark TEXT: Filter results by benchmark name--platform TEXT: Filter results by platform name
Output Format¶
The CSV output contains one row per result file with these columns:
Column |
Description |
|---|---|
|
Benchmark execution timestamp |
|
Benchmark name |
|
Platform name |
|
Scale factor used |
|
Total execution time in seconds |
|
Geometric mean of query times (ms) |
|
Median query time (ms) |
|
95th percentile query time (ms) |
|
99th percentile query time (ms) |
|
Number of successful queries |
|
Source result filename |
Usage Examples¶
# Aggregate all results in directory
benchbox aggregate --input-dir benchmark_runs/ --output-file trends.csv
# Filter by benchmark
benchbox aggregate \
--input-dir benchmark_runs/ \
--output-file tpch_trends.csv \
--benchmark tpch
# Filter by platform
benchbox aggregate \
--input-dir benchmark_runs/ \
--output-file duckdb_trends.csv \
--platform duckdb