unjs/h3

Performance is horrible

Closed this issue · 2 comments

Describe the feature

After testing with Bun.serve() and h3:

"Hello World"
h3: 10k req/s
Bun.serve: 50k req/s

Additional information

  • Would you be willing to help implement this feature?
pi0 commented

h3 was designed for Node.js environments (and super fast for node). H3 v2 is based on web API now and it is almost close to native perf. check main branch bun bench:bun

image

h3 was designed for Node.js environments (and super fast for node). H3 v2 is based on web API now and it is almost close to native perf. check main branch bun bench:bun
image

does that mean its no longer gonna generate IncomingMessage and ServerResponse for none-node environments like Bun, Cloudflare, Deno, etc.?