Skip to content

Commit

Permalink
Collect more benchmark samples to reduce test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed Oct 18, 2021
1 parent 64787dd commit a298dd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions benchmarks/runtime.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('runtime', () => {

const { medianDuration } = runBenchmark(() => {
lintManyFilesWithAllRecommendedRules({ numberOfFiles: 350 });
}, 5);
}, 50);

expect(medianDuration).to.be.below(budget);
});
Expand All @@ -106,7 +106,7 @@ describe('runtime', () => {

const { medianMemory } = runBenchmark(() => {
lintManyFilesWithAllRecommendedRules({ numberOfFiles: 350 });
}, 5);
}, 50);

expect(medianMemory).to.be.below(budget);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "npm run test:unit:with-coverage && npm run test:bench",
"test:unit": "mocha test --recursive --reporter dot",
"test:unit:with-coverage": "nyc npm run test:unit",
"test:bench": "mocha -t 1200000 benchmarks",
"test:bench": "mocha -t 2400000 benchmarks",
"coveralls": "cat ./build/coverage/lcov.info | coveralls",
"changelog": "pr-log"
},
Expand Down

0 comments on commit a298dd5

Please sign in to comment.