charts
Chart generation for benchmark results.
Uses dark mode styling for reusable visualizations.
Functions
function
create_latency_distribution_chart(result: LatencyBenchmarkResult, output_path: Path) → NoneCreate latency distribution box plot.
Create latency distribution box plot.
Args:
result: Latency benchmark result
output_path: Path to save chart
Parameters
result: LatencyBenchmarkResultoutput_path: Path
function
create_latency_percentiles_chart(result: LatencyBenchmarkResult, output_path: Path) → NoneCreate latency percentiles bar chart.
Create latency percentiles bar chart.
Args:
result: Latency benchmark result
output_path: Path to save chart
Parameters
result: LatencyBenchmarkResultoutput_path: Path
function
create_memory_comparison_chart(result: MemoryBenchmarkResult, output_path: Path, spawn_result: MemoryBenchmarkResult | None = None, fork_result: MemoryBenchmarkResult | None = None) → NoneCreate 2x2 memory comparison chart.
Create 2x2 memory comparison chart.
Args:
result: Memory benchmark result (single mode)
output_path: Path to save chart
spawn_result: Optional spawn mode result
fork_result: Optional fork mode result
Parameters
result: MemoryBenchmarkResultoutput_path: Pathspawn_result: MemoryBenchmarkResult | None= Nonefork_result: MemoryBenchmarkResult | None= None
function
create_multi_corpus_memory_chart(results: list[MemoryBenchmarkResult], output_path: Path) → NoneCreate horizontal bar chart comparing memory across corpora.
Create horizontal bar chart comparing memory across corpora.
Args:
results: List of memory benchmark results
output_path: Path to save chart
Parameters
results: list[MemoryBenchmarkResult]output_path: Path
function
create_progressive_scaling_chart(result: ProgressiveLoadResult, output_path: Path) → NoneCreate progressive scaling line chart.
Create progressive scaling line chart.
Args:
result: Progressive load result
output_path: Path to save chart
Parameters
result: ProgressiveLoadResultoutput_path: Path
function
setup_dark_style() → NoneSet up dark mode matplotlib style.