Open twoeths opened 2 hours ago
also note the result run by @nazarhussain here:
For such comparisons we should avoid typescript complexity. I run it over the build JS files and got different results. But yet Bun is the winner.
Node: 9.1ms
Deno: 8.2
Bun: 3.71
One other observation is that Typescript overhead is almost negligible in case of Bun, ~10% in case of Deno and 100% in case of TSX/TS-Node
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