Skip to main content

load_baseline

Function load_baseline 

Source
pub(crate) fn load_baseline() -> Result<Option<Baseline>, String>
Expand description

Reads --baseline <path>, if it was given.

A previous run’s own JSON output is the baseline format, which is what makes the fixed-commit discipline issue #126 argues for a two-command exercise: record the suite once on the commit being measured against, keep the file, and pass it to every run afterwards. Three changes each individually inside the noise summed to 19% there, and no comparison against the parent alone could have seen it.