So I only just learned about this recently, but it appears that Bun can execute things in either native Bun runtime, or using an integrated copy of Node. The current benchmark data is using the Node runtime. It's also feeding the TypeScript code through ts-node, which is completely unnecessary, given that Bun has native TypeScript support.
This will require some changes to the current script execution:
- Setting bun to run in native mode https://bun.sh/docs/runtime/bunfig#run-bun-auto-alias-node-to-bun
- Removing ts-node from being executed by Bun