diff --git a/benchmarks/handle-event/index.js b/benchmarks/handle-event/index.js index 6bbf6bfad..01fb50a17 100644 --- a/benchmarks/handle-event/index.js +++ b/benchmarks/handle-event/index.js @@ -113,6 +113,18 @@ makeEdgeEnv() // FetchEvent Object const event = new FetchEvent('fetch', { request }) +const fn = async () => { + let res = await hono.fetch(event.request) + console.log(await res.text()) + res = await ittyRouter.handle(event.request) + console.log(await res.text()) + res = await sunderApp.handle(event) + console.log(await res.text()) + res = await worktopRouter.run(event) + console.log(await res.text()) +} +fn() + group(() => { bench('Hono', async () => { await hono.fetch(event.request)