This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package Manager Benchmarks | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '22' | |
- name: Install Tools | |
run: | | |
npm install -g vlt | |
corepack enable yarn pnpm | |
curl -fsSL https://bun.sh/install | bash | |
curl -fsSL https://deno.land/x/install/install.sh | sh | |
sudo apt-get install -y hyperfine | |
- name: Run Benchmarks | |
run: | | |
npm -v | |
vlt -v | |
corepack yarn@1 -v | |
corepack yarn@latest -v | |
corepack pnpm@latest -v | |
bun -v | |
deno -v | |
echo "Benchmarking..." | |
hyperfine --warmup 3 -i --prepare 'rm -rf node_modules vlt-lock.json package-lock.json .npmrc yarn.lock .yarnrc pnpm-lock.yaml bun.lockb deno.json' 'vlt install' 'npm install' 'corepack yarn@1 install' 'corepack yarn@latest install' 'corepack pnpm@latest install' 'bun install' 'deno install' --export-markdown benchmark.md | |
cat benchmark.md |