REAL fix for min-square for --steps=1 --repeats=1 (#10323) (#10369)

* Revert "frame-benchmarking: Fix `min-square` for `--steps=1` (#10323)"

This reverts commit 2d0e858b81.

* actual fix
This commit is contained in:
Shawn Tabrizi
2021-11-25 02:24:45 -08:00
committed by GitHub
parent c5ae5190b2
commit a33b7c2e36
+1 -1
View File
@@ -199,7 +199,7 @@ impl Analysis {
}
pub fn min_squares_iqr(r: &Vec<BenchmarkResult>, selector: BenchmarkSelector) -> Option<Self> {
if r[0].components.len() <= 1 {
if r[0].components.is_empty() || r.len() <= 2 {
return Self::median_value(r, selector)
}