Skip to main content

compute_statistics

Function compute_statistics 

Source
pub fn compute_statistics(
    results: &[BenchExecutionResult],
    _config: &ExecutionConfig,
) -> Vec<(String, Option<SummaryStatistics>)>
Expand description

Compute statistics for benchmark results (parallelized with Rayon)

Uses Rayon for parallel computation of summary statistics across all benchmarks. Each benchmark’s samples are independently processed, making this highly parallelizable.

§Arguments

  • results - Benchmark execution results containing samples
  • _config - Execution configuration. Currently unused but reserved for future extensions such as configurable outlier detection methods, custom percentile thresholds, or alternative statistical algorithms.

§Returns

Vector of (benchmark_id, optional statistics) pairs. Returns None for benchmarks with no samples (e.g., crashed or skipped benchmarks).