소스 검색

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,