node-server icon indicating copy to clipboard operation
node-server copied to clipboard

Performance improvement

Open yusukebe opened this issue 2 years ago • 5 comments

Indeed, the Hono app, when using node-server, is slow. You can see the benchmarks here:

https://github.com/SaltyAom/bun-http-framework-benchmark

However, there are opportunities to improve performance, and we should do them.

yusukebe avatar Jul 29 '23 22:07 yusukebe

I agree, especially if it performs better than Express and Hapi or even as well as Koa or Fastify.

Nothing is perfect, but there's always room to improve 🔥

rafaell-lycan avatar Nov 10 '23 23:11 rafaell-lycan

@yusukebe Is performance the only limitation of hono on node or are there missing functionality or feature compared to bun?

cdtut avatar Nov 16 '23 01:11 cdtut

@yusukebe is the reason known why the node-server seems that 'slow'?

kevinvdburgt avatar Mar 07 '24 23:03 kevinvdburgt

Hi @kevinvdburgt

Node.js Incoming/Outgoing Messages and Web Standards Request/Response are incompatible, and the translations cause overhead.

yusukebe avatar Mar 09 '24 20:03 yusukebe

maybe there is something we can learn from this implementation?

not sure if that helps, I'm just sharing

marcosrjjunior avatar Apr 02 '24 09:04 marcosrjjunior