Browse Source

skip when not enough runs

Saul Shanabrook 4 năm trước cách đây
mục cha
commit
bca0297728
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      benchmarks/src/compare.ts

+ 9 - 0
benchmarks/src/compare.ts

@@ -114,6 +114,15 @@ async function* compare(
       });
       continue;
     }
+    if (old.length <= 2) {
+      console.warn('Skipping because not enough runs', {
+        mode,
+        browser,
+        type,
+        n
+      });
+      continue;
+    }
     yield {
       mode,
       browser,