Why is Bun slower than Node when running a loop with an index larger than 1_000_000? #10945
Unanswered
dinhchien-zps
asked this question in
Q&A
Replies: 3 comments 6 replies
-
The gap between Bun & Node is trivial |
Beta Was this translation helpful? Give feedback.
4 replies
-
You are comparing optimization of empty loop in V8 vs JavaScriptCore. Any numbers you could get from this comparison will have nothing to do with real world scenarios. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I get |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I run a loop with an index smaller than 1_000_000, Bun is still faster than Node:
But when I run a loop with an index larger than 1_000_000, Bun is much slower than Node:
Can someone explain to me why?
Beta Was this translation helpful? Give feedback.
All reactions