Skip to content
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

Starter Kit Example Using Bun #1

Open
teddyjfpender opened this issue Sep 26, 2023 · 1 comment
Open

Starter Kit Example Using Bun #1

teddyjfpender opened this issue Sep 26, 2023 · 1 comment

Comments

@teddyjfpender
Copy link

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.

@laciferin2024
Copy link

Just do bun create proto-kit/starter-kit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants