Skip to content

Commit 40e8eef

Browse files
committed
combine results
1 parent 4832b09 commit 40e8eef

File tree

1 file changed

+16
-27
lines changed

1 file changed

+16
-27
lines changed

.github/workflows/benchmark.yaml

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,43 +36,32 @@ jobs:
3636
- name: Benchmark package managers
3737
run: |
3838
echo "Benchmarking npm (cold cache)..."
39-
hyperfine -i --prepare 'rm -rf node_modules package-lock.json' 'npm install' --export-markdown npm_cold.md
40-
41-
echo "Benchmarking npm (warm cache)..."
42-
hyperfine -i 'npm install' --export-markdown npm_warm.md
39+
hyperfine -i --prepare 'rm -rf node_modules package-lock.json .npmrc' 'npm install' --export-markdown npm_cold.md
4340
4441
echo "Benchmarking yarn (cold cache)..."
45-
hyperfine -i --prepare 'rm -rf node_modules yarn.lock' 'yarn install' --export-markdown yarn_cold.md
46-
47-
echo "Benchmarking yarn (warm cache)..."
48-
hyperfine -i 'yarn install' --export-markdown yarn_warm.md
42+
hyperfine -i --prepare 'rm -rf node_modules yarn.lock .yarnrc' 'yarn install' --export-markdown yarn_cold.md
4943
5044
echo "Benchmarking pnpm (cold cache)..."
51-
hyperfine -i --prepare 'rm -rf node_modules pnpm-lock.yaml' 'pnpm install' --export-markdown pnpm_cold.md
52-
53-
echo "Benchmarking pnpm (warm cache)..."
54-
hyperfine -i 'pnpm install' --export-markdown pnpm_warm.md
45+
hyperfine -i --prepare 'rm -rf node_modules pnpm-lock.yaml .npmrc' 'pnpm install' --export-markdown pnpm_cold.md
5546
5647
echo "Benchmarking bun (cold cache)..."
5748
hyperfine -i --prepare 'rm -rf node_modules bun.lockb' 'bun install' --export-markdown bun_cold.md
5849
59-
echo "Benchmarking bun (warm cache)..."
60-
hyperfine -i 'bun install' --export-markdown bun_warm.md
61-
6250
echo "Benchmarking deno (cold cache)..."
6351
hyperfine -i --prepare 'rm -rf deno_modules' 'deno cache' --export-markdown deno_cold.md
6452
65-
echo "Benchmarking deno (warm cache)..."
66-
hyperfine -i 'deno cache' --export-markdown deno_warm.md
53+
echo "Combining benchmark results..."
54+
echo "# Package Manager Benchmark Results" > combined_results.md
55+
echo "## npm (cold cache)" >> combined_results.md
56+
cat npm_cold.md >> combined_results.md
57+
echo "## yarn (cold cache)" >> combined_results.md
58+
cat yarn_cold.md >> combined_results.md
59+
echo "## pnpm (cold cache)" >> combined_results.md
60+
cat pnpm_cold.md >> combined_results.md
61+
echo "## bun (cold cache)" >> combined_results.md
62+
cat bun_cold.md >> combined_results.md
63+
echo "## deno (cold cache)" >> combined_results.md
64+
cat deno_cold.md >> combined_results.md
6765
6866
echo "Benchmark Results:"
69-
cat npm_cold.md
70-
cat npm_warm.md
71-
cat yarn_cold.md
72-
cat yarn_warm.md
73-
cat pnpm_cold.md
74-
cat pnpm_warm.md
75-
cat bun_cold.md
76-
cat bun_warm.md
77-
cat deno_cold.md
78-
cat deno_warm.md
67+
cat combined_results.md

0 commit comments

Comments
 (0)