Install hyperfine for different OS
To get started with this template, simply paste this command into your terminal:
bun create elysia ./elysia-exampleTo start the development server run:
bun run devOpen http://localhost:3000/ with your browser to see the result.
npm i -g npm@latestnpm i -g bun@latestnpm i -g @pnpm/exe@latest- see https://yarnpkg.com/migration/guide
- Yarn v4 is a bit complicated to set up because you need to enable corepack which removes pnpm from the global installed dependencies.
- You can install include yarn in the benchmarking test but it will the classic yarn and not the latest yarn v4.
- to learn more about corepack, go to this link. https://nodejs.org/api/corepack.html and https://yarnpkg.com/corepack
- You cana use latest pnpm and yarn without installing them using corepack.
corepack enableyarn config set initScope myScope
yarn set version 4.5.1-dev
yarn installhyperfine --prepare 'rm -rf node_modules' --warmup 1 --runs 1 'npm install' 'bun install' 'pnpm install' 'yarn install'