Skip to content

Starter Kit Example Using Bun #1

Description

@teddyjfpender

I tried the starter-kit with Bun. There are some performance gains when using Bun instead of Node/npm:

  • For a block with a single transaction there is a 2.67x difference:
    • Node: Block Production time: 4740 milliseconds
    • Bun: Block Production time: 1772 milliseconds
  • For a block with four transactions there is a 2.60x difference:
    • Node: Block Production time: 18834 milliseconds
    • Bun: Block Production time: 7233 milliseconds

When using Bun with Protokit I noticed the need to use

import "core-js";
import "reflect-metadata";

as the first two lines in both entry point files and test files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions