Skip to main content

gaps

Function gaps 

Source
pub fn gaps(
    baseline: &[Record],
    current: &[Record],
    count_failed: &BTreeSet<Key>,
) -> Vec<(Key, Gap)>
Expand description

The series this run measured that --gate cannot check, and why.

A benchmark whose count this run failed to take, one added since the baseline was saved, or one the baseline holds only for another runner class would otherwise pass a gate that checked only its neighbours.

Judged per series of this run, so on this run’s runner class only. A baseline saved on two classes holds a series for each, and the one for the other class is not missing from this run — it was never going to be compared with it. Counting it as a gap failed every gate on both classes.

A series with no count on either side is left out: a subject with counters = false is wall-clock only by design and never gates. That rule cannot tell design from accident by the records alone, which look the same either way, so count_failed names the series whose count this run asked for, with valgrind present, and did not get. Those are always a gap: a new benchmark whose count failed has nothing in the baseline either, and was otherwise skipped while --gate passed on its neighbours.