Performance difference on Windows — Node+Hono+EJS faster than Bun+Hono+EJS #21998
chandra3145
started this conversation in
General
Replies: 1 comment
-
Yes of course |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
We were doing some benchmarking with Bun+Hono+EJS vs Node.js+Hono+EJS and noticed an interesting platform-specific difference. According to the bun-http-framework-benchmark
, Hono on Bun should achieve ~64k throughput vs ~27k on Node.js.
To verify this, we created a simple benchmark repo here:
👉 https://github.com/chandra3145/bun-node-benchmark
We ran ApacheBench (ab) with the following command on both Mac and Windows:
For bun - ab -n 1000 -c 1 http://localhost:8080/complex
for Node - ab -n 1000 -c 1 http://localhost:8081/complex
Mac OS (M1)
Bun is 16.9% faster in requests per second on the complex route.
(Aligned with expectations)
Windows
Node.js is actually 8.5% faster than Bun on the same complex route.
(This is opposite to the benchmark results reported earlier)
Question:
Has anyone else observed this performance difference specifically on Windows?
Could this be related to:
Beta Was this translation helpful? Give feedback.
All reactions