ソースを参照

skip when not enough runs

Saul Shanabrook 4 年 前
コミット
bca0297728
1 ファイル変更9 行追加0 行削除
  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,