-
-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experiment different javascript runtimes #7237
Comments
also note the result run by @nazarhussain here:
|
Looks like Bun's performance trumps Deno's by a substantial amount. Is there any advantage of Deno over Bun that we should consider? |
@ensi321 I don't see any, as discussed in the previous meeting we want to explore Bun because its JavaScriptCore engine is way different from NodeJS + Deno. One obstacle for Bun is it does not support Node API, we should try Bun's FFI instead and compare the performance with Node API |
According to https://bun.sh/docs/api/node-api (and verified doing some basic tests), bun supports most of NAPI |
Problem description
So far we only run lodestar with NodejS. The goal is to experiment other javascript runtimes like Bun and Deno to see if lodestar performs better there. I had different benchmark for them:
Number of bytes used to store an Uint8Array of 32 bytes
Here's my result on a Mac M1:
to run the NodeJS, I used the tsx and it's worth to note by @nazarhussain that Typescript overhead is almost negligible in case of Bun, ~10% in case of Deno and 100% in case of TSX/TS-Node
Solution description
Based on the test results I'd like to discuss how to go from there
Additional context
No response
The text was updated successfully, but these errors were encountered: