starter-kit icon indicating copy to clipboard operation
starter-kit copied to clipboard

Starter Kit Example Using Bun

Open teddyjfpender opened this issue 2 years ago • 1 comments

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.

teddyjfpender avatar Sep 26 '23 08:09 teddyjfpender

Just do bun create proto-kit/starter-kit

laciferin2024 avatar Nov 01 '24 01:11 laciferin2024