From 82cc630bf76585f60f8320bf447ed2960a6fad9e Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Wed, 29 Nov 2023 21:23:33 -0500 Subject: [PATCH] Bump perf timer I guess --- test/reselect.spec.ts | 2 +- test/weakmapMemoize.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/reselect.spec.ts b/test/reselect.spec.ts index adee306f6..d16800436 100644 --- a/test/reselect.spec.ts +++ b/test/reselect.spec.ts @@ -134,7 +134,7 @@ describe('Basic selector behavior', () => { expect(selector(state1)).toBe(3) expect(selector.recomputations()).toBe(1) // Expected a million calls to a selector with the same arguments to take less than 1 second - expect(totalTime).toBeLessThan(1000) + expect(totalTime).toBeLessThan(2000) }) test('basic selector cache hit performance for state changes but shallowly equal selector args', () => { diff --git a/test/weakmapMemoize.spec.ts b/test/weakmapMemoize.spec.ts index bf050429a..338441e54 100644 --- a/test/weakmapMemoize.spec.ts +++ b/test/weakmapMemoize.spec.ts @@ -112,8 +112,8 @@ describe('Basic selector behavior with weakMapMemoize', () => { expect(selector(state1)).toBe(3) expect(selector.recomputations()).toBe(1) - // Expected a million calls to a selector with the same arguments to take less than 1.5 seconds - expect(totalTime).toBeLessThan(1500) + // Expected a million calls to a selector with the same arguments to take less than 2 seconds + expect(totalTime).toBeLessThan(200) }) test('basic selector cache hit performance for state changes but shallowly equal selector args', () => { @@ -137,7 +137,7 @@ describe('Basic selector behavior with weakMapMemoize', () => { expect(selector.recomputations()).toBe(1) // Expected a million calls to a selector with the same arguments to take less than 1 second - expect(totalTime).toBeLessThan(1000) + expect(totalTime).toBeLessThan(2000) }) test('memoized composite arguments', () => {