starter-kit
starter-kit copied to clipboard
Starter Kit Example Using Bun
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.
Just do bun create proto-kit/starter-kit