Skip to content

Commit

Permalink
Bump perf timer I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Nov 30, 2023
1 parent fd004e9 commit 82cc630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/reselect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
6 changes: 3 additions & 3 deletions test/weakmapMemoize.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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', () => {
Expand Down

0 comments on commit 82cc630

Please sign in to comment.