Documentation

charts

Chart generation for benchmark results.

Uses dark mode styling for reusable visualizations.

Functions

function
create_latency_distribution_chart(result: LatencyBenchmarkResult, output_path: Path) None

Create latency distribution box plot.

Create latency distribution box plot. Args: result: Latency benchmark result output_path: Path to save chart
Parameters
  • result: LatencyBenchmarkResult
  • output_path: Path
function
create_latency_percentiles_chart(result: LatencyBenchmarkResult, output_path: Path) None

Create latency percentiles bar chart.

Create latency percentiles bar chart. Args: result: Latency benchmark result output_path: Path to save chart
Parameters
  • result: LatencyBenchmarkResult
  • output_path: Path
function
create_memory_comparison_chart(result: MemoryBenchmarkResult, output_path: Path, spawn_result: MemoryBenchmarkResult | None = None, fork_result: MemoryBenchmarkResult | None = None) None

Create 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: MemoryBenchmarkResult
  • output_path: Path
  • spawn_result: MemoryBenchmarkResult | None= None
  • fork_result: MemoryBenchmarkResult | None= None
function
create_multi_corpus_memory_chart(results: list[MemoryBenchmarkResult], output_path: Path) None

Create 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) None

Create progressive scaling line chart.

Create progressive scaling line chart. Args: result: Progressive load result output_path: Path to save chart
Parameters
  • result: ProgressiveLoadResult
  • output_path: Path
function
setup_dark_style() None

Set up dark mode matplotlib style.