Skip to content

Commit

Permalink
better perf
Browse files Browse the repository at this point in the history
  • Loading branch information
mstdokumaci committed Jul 11, 2019
1 parent ee84312 commit 4b3e1f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/path-collusion.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ test('path collusion', t => {
state.set(arr)
const structSet = Date.now() - d
t.ok(
structSet < objSet * 40,
`1e5 sets (${structSet}ms) under 40x objSet (${objSet}ms)`
structSet < objSet * 25,
`1e5 sets (${structSet}ms) under 25x objSet (${objSet}ms)`
)

d = Date.now()
Expand All @@ -46,8 +46,8 @@ test('path collusion', t => {
}
const structGet = Date.now() - d
t.ok(
structGet < objSet * 20,
`1e5 gets (${structGet}ms) under 20x objSet (${objSet}ms)`
structGet < objSet * 10,
`1e5 gets (${structGet}ms) under 10x objSet (${objSet}ms)`
)

t.equals(
Expand Down

0 comments on commit 4b3e1f7

Please sign in to comment.