Skip to content

Commit

Permalink
Fix flaky performance test
Browse files Browse the repository at this point in the history
Performance in GitHub Actions is not predictable
  • Loading branch information
timokoessler committed Dec 18, 2024
1 parent a892b72 commit 9e3dc47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/helpers/ip-matcher/performance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,6 @@ t.test("test performance in comparison to node:net.blocklist", async (t) => {

const percentageDiff = ((blockListMs - ipMatcherMs) / ipMatcherMs) * 100;

// Expect the IPMatcher to be at least 100% faster than the BlockList
t.same(percentageDiff > 100, true);
// Expect the IPMatcher to be faster than the BlockList
t.same(percentageDiff > 0, true);
});

0 comments on commit 9e3dc47

Please sign in to comment.