-
Notifications
You must be signed in to change notification settings - Fork 0
/
benchmark-package-install-ci-download.sh
executable file
·20 lines (18 loc) · 1.43 KB
/
benchmark-package-install-ci-download.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
hyperfine \
--export-json=benchmark-package-install-ci-download-website.json \
--warmup=1 \
--time-unit=millisecond \
--command-name='Yarn (website) (yarnpkg.com)' --prepare='rm -rf ~/.cache/yarn/ ~/Library/Caches/Yarn/v6/ website-node-20/node_modules/' 'cd website-node-20 && yarn install --immutable' \
--command-name='Yarn (website) (npmjs.org)' --prepare='rm -rf ~/.cache/yarn/ ~/Library/Caches/Yarn/v6/ website-npmjsor/node_modules/' 'cd website-npmjsor && yarn install --immutable' \
--command-name='Bun (website) (npmjs.org)' --prepare='rm -rf ~/.bun/install/cache/ website-bunbuns/node_modules/' 'cd website-bunbuns && bun install --frozen-lockfile' \
hyperfine \
--export-json=benchmark-package-install-ci-download-analytics.json \
--warmup=1 \
--time-unit=millisecond \
--command-name='Yarn (analytics) (yarnpkg.com)' --prepare='rm -rf ~/.cache/yarn/ ~/Library/Caches/Yarn/v6/ website-node-20/analytics/node_modules/' 'cd website-node-20/analytics && yarn install --immutable' \
--command-name='Yarn (analytics) (npmjs.org)' --prepare='rm -rf ~/.cache/yarn/ ~/Library/Caches/Yarn/v6/ website-npmjsor/analytics/node_modules/' 'cd website-npmjsor/analytics && yarn install --immutable' \
--command-name='Bun (analytics) (npmjs.org)' --prepare='rm -rf ~/.bun/install/cache/ website-bunbuns/analytics/node_modules/' 'cd website-bunbuns/analytics && bun install --frozen-lockfile' \