Skip to content

Commit

Permalink
Merge pull request #481 from AikidoSec/fix-flaky-performance-test
Browse files Browse the repository at this point in the history
Fix flaky performance test
  • Loading branch information
hansott authored Dec 18, 2024
2 parents a892b72 + 097769d commit f07e0f4
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 > 25, true);
});

0 comments on commit f07e0f4

Please sign in to comment.