Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x authored Dec 26, 2024
1 parent 2d009bd commit 7d517c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions benchmarks/handle-event/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d517c1

Please sign in to comment.