csv_writer
CSV output utilities for benchmark results.
Functions
function
write_comparison_csv(comparisons: list[dict], output_path: Path) → NoneWrite comparison results to CSV.
Write comparison results to CSV.
Args:
comparisons: List of comparison dictionaries
output_path: Path to output CSV file
Parameters
comparisons: list[dict]output_path: Path
function
write_cross_corpus_summary_csv(results: list[MemoryBenchmarkResult], output_path: Path) → NoneWrite cross-corpus aggregate statistics to CSV.
Write cross-corpus aggregate statistics to CSV.
Computes mean/std/CI of reduction percentages across all corpora.
Args:
results: List of memory benchmark results (one per corpus)
output_path: Path to output CSV file
Parameters
results: list[MemoryBenchmarkResult]output_path: Path
function
write_latency_measurements_csv(measurements: list[QueryMeasurement], output_path: Path) → NoneWrite latency measurements to CSV.
Write latency measurements to CSV.
Args:
measurements: List of query measurements
output_path: Path to output CSV file
Parameters
measurements: list[QueryMeasurement]output_path: Path
function
write_latency_statistics_csv(statistics: list[LatencyStatistics], output_path: Path) → NoneWrite latency statistics to CSV.
Write latency statistics to CSV.
Args:
statistics: List of latency statistics
output_path: Path to output CSV file
Parameters
statistics: list[LatencyStatistics]output_path: Path
function
write_memory_measurements_csv(measurements: list[MemoryMeasurement], output_path: Path) → NoneWrite memory measurements to CSV.
Write memory measurements to CSV.
Args:
measurements: List of memory measurements
output_path: Path to output CSV file
Parameters
measurements: list[MemoryMeasurement]output_path: Path
function
write_memory_summary_csv(results: list[MemoryBenchmarkResult], output_path: Path) → NoneWrite memory benchmark summary to CSV.
Write memory benchmark summary to CSV.
Args:
results: List of memory benchmark results
output_path: Path to output CSV file
Parameters
results: list[MemoryBenchmarkResult]output_path: Path
function
write_progressive_steps_csv(steps: list[ProgressiveLoadStep], output_path: Path) → NoneWrite progressive loading steps to CSV.
Write progressive loading steps to CSV.
Args:
steps: List of progressive load steps
output_path: Path to output CSV file
Parameters
steps: list[ProgressiveLoadStep]output_path: Path
function
write_queries_csv(queries: list[SearchQuery], output_path: Path) → NoneWrite search patterns to CSV.
Write search patterns to CSV.
Args:
queries: List of search queries
output_path: Path to output CSV file
Parameters
queries: list[SearchQuery]output_path: Path