Browse Source

skip when not enough runs

Saul Shanabrook 4 years ago
parent
commit
bca0297728
1 changed files with 9 additions and 0 deletions
  1. 9 0
      benchmarks/src/compare.ts

+ 9 - 0
benchmarks/src/compare.ts

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