Skip to content

[bun] asyncAggregateWithRandomness performance issue #8524

@twoeths

Description

@twoeths

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bunRelated to the bun javascript runtimemeta-bugIssues that identify a bug and require a fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions