hono icon indicating copy to clipboard operation
hono copied to clipboard

Fix for "Web Framework Benchmark"

Open yusukebe opened this issue 2 years ago • 2 comments

What is the feature you are proposing?

The following benchmark results show a very low score for Hono:

Web Frameworks Benchmark

This is because it is failing to fork the process in pm2.

Screenshot 2023-09-26 at 4 38 58

Only one process is up and running because of a port conflict.

Screenshot 2023-09-26 at 4 40 26

I can think of several ways, anyway we have to resolved it.

yusukebe avatar Sep 25 '23 19:09 yusukebe

I’ve fixed a port conflict issue with the PR: https://github.com/the-benchmarker/web-frameworks/pull/6763 . But it only prevents errors and does not improve performance.

Other Node.js web frameworks such as Fastify are clustered using pm2. However, the Hono apps that run on top of bun are just forked. Since this benchmark only accesses port 3000, there is no point in forking. So I don't think it makes sense to use pm2.

yusukebe avatar Oct 04 '23 07:10 yusukebe