Skip to main content

write_baseline

Function write_baseline 

Source
pub fn write_baseline(
    path: &Path,
    entries: &[(String, BaselineEntry)],
) -> Result<()>
Expand description

Writes entries to path as parse_baseline_line’s own format, in REFERENCE_ROUTES’s own order rather than whatever order a Baseline’s own hash map would iterate in – so the file reads the same top-to-bottom as bench’s own printed table, and so a diff between two baselines is a diff between two runs, not shuffled noise.

§Errors

If path cannot be written.