lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

[bun] asyncAggregateWithRandomness performance issue

Open twoeths opened this issue 3 months ago • 0 comments

Describe the bug

this is on 2 nodes subscribe to all subnets

  • with nodejs, it's average time is ~7ms
Image
  • with bun, it's ~ 7x slower
Image

Expected behavior

  • right now we use napi so bun does not have a good adventage there, may need to consider using bun:ffi without async instead

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

unstable

twoeths avatar Oct 13 '25 03:10 twoeths