BunはJavascriptランタイム
Bun — A fast all-in-one JavaScript runtime
インストール
$ curl https://bun.sh/install | bash
React with Bun runtime
$ bun create react-app ./react-bun-app
($ bun create hono ./hono-bun-app)
$ cd react-bun-app
$ bun dev
http://localhost:3000
https://github.com/oven-sh/bun/tree/main/examples/react
Bun で Create React App してみる #React - Qiita
【Bun】新しいJavaScriptランタイムについてふわっとまとめた
bunの方がnodeの10.89倍高速
Summary
'bun hello.js' ran
10.89 ± 0.44 times faster than 'node hello.js'
Rustをインストール
Rust 1.62.0 - MBP(はてな)
hyperfineをインストール $ cargo install hyperfine
Linuxメモ : hyperfine, benchでコマンドのベンチマーク - もた日記
$ hyperfine --warmup 100 'node hello.js' 'bun hello.js'
【Bun】新しいJavaScriptランタイムについてふわっとまとめた
$ bun add react-router-dom