Skip to content

Commit

Permalink
test: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Jan 3, 2025
1 parent dfc6c33 commit 2eaff84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions packages/cloudformation-response/__benchmarks__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const setupHandler = () => {
return middy(baseHandler).use(middleware())
}

const coldHandler = setupHandler({ cacheExpiry: 0 })
const warmHandler = setupHandler()
const coldHandler = setupHandler()

const event = {}
await bench
Expand All @@ -22,11 +21,6 @@ await bench
await coldHandler(event, context)
} catch (e) {}
})
.add('with cache', async () => {
try {
await warmHandler(event, context)
} catch (e) {}
})

.run()

Expand Down
8 changes: 1 addition & 7 deletions packages/cloudformation-router/__benchmarks__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const setupHandler = () => {
return middy(baseHandler).use(middleware())
}

const coldHandler = setupHandler({ cacheExpiry: 0 })
const warmHandler = setupHandler()
const coldHandler = setupHandler()

const event = {}
await bench
Expand All @@ -22,11 +21,6 @@ await bench
await coldHandler(event, context)
} catch (e) {}
})
.add('with cache', async () => {
try {
await warmHandler(event, context)
} catch (e) {}
})

.run()

Expand Down

0 comments on commit 2eaff84

Please sign in to comment.