diff --git a/packages/cloudformation-response/__benchmarks__/index.js b/packages/cloudformation-response/__benchmarks__/index.js index d9c351138..42c8ee848 100644 --- a/packages/cloudformation-response/__benchmarks__/index.js +++ b/packages/cloudformation-response/__benchmarks__/index.js @@ -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 @@ -22,11 +21,6 @@ await bench await coldHandler(event, context) } catch (e) {} }) - .add('with cache', async () => { - try { - await warmHandler(event, context) - } catch (e) {} - }) .run() diff --git a/packages/cloudformation-router/__benchmarks__/index.js b/packages/cloudformation-router/__benchmarks__/index.js index d9c351138..42c8ee848 100644 --- a/packages/cloudformation-router/__benchmarks__/index.js +++ b/packages/cloudformation-router/__benchmarks__/index.js @@ -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 @@ -22,11 +21,6 @@ await bench await coldHandler(event, context) } catch (e) {} }) - .add('with cache', async () => { - try { - await warmHandler(event, context) - } catch (e) {} - }) .run()