Skip to main content

compare

Function compare 

Source
pub(crate) fn compare(
    baseline: Option<&Baseline>,
    compared: &mut Vec<Compared>,
    benchmark: &str,
    kind: &str,
    backend: &str,
    current: &Stats,
)
Expand description

Emits the comparison for one row, when there is a baseline and it has the row.

A row the baseline does not have produces nothing at all. It is not an error – benchmarks get added, and cove_ir learns to lower ones it used to refuse – but it is also not a comparison, and a line saying “no change” for a row that was never measured before would be the worst of both.