visualize - Generate Charts¶
Generate ASCII charts from benchmark result files directly in the terminal.
Basic Syntax¶
benchbox visualize [SOURCES...] [OPTIONS]
Arguments¶
SOURCES: One or more paths to benchmark result JSON files. If omitted, auto-discovers the 5 most recent results frombenchmark_runs/results/.
Options¶
--chart-type TEXT: Chart type to render (default:auto). Can be specified multiple times.autoorall: Render all applicable chart typesSpecific types:
performance_bar,query_time_histogram,speedup,comparison, and others
--template TEXT: Named template that defines a preset combination of chart types (overrides--chart-type)--theme [light|dark]: Color theme (default:light)--no-color: Disable ANSI colors in output (useful for piping to files)--no-unicode: Use ASCII-only characters (for terminals without Unicode support)
Usage Examples¶
# Auto-discover recent results and render all applicable charts
benchbox visualize
# Visualize a specific result file
benchbox visualize benchmark_runs/results/duckdb_tpch_sf01.json
# Compare two results side-by-side
benchbox visualize result_a.json result_b.json --chart-type speedup
# Render a specific chart type
benchbox visualize result.json --chart-type performance_bar
# Use a named template
benchbox visualize result.json --template overview
# Pipe-friendly output (no color, no unicode)
benchbox visualize result.json --no-color --no-unicode > charts.txt
# Dark theme for dark terminal backgrounds
benchbox visualize result.json --theme dark
Notes¶
Pairwise comparison charts (e.g.,
speedup) require exactly 2 result files when specified explicitly. When usingautoorall, pairwise charts are skipped if the input count doesn’t match.Chart types can be listed with
benchbox visualize --help.