Skip to content

Commit 09b5688

Browse files
committed
debug
1 parent 531b05c commit 09b5688

File tree

2 files changed

+6
-50
lines changed

2 files changed

+6
-50
lines changed

.github/workflows/benchmark.yaml

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Package Manager Benchmarks
2-
on:
2+
on:
33
push:
44
workflow_dispatch:
55
inputs:
@@ -33,15 +33,15 @@ jobs:
3333
timeout-minutes: 60
3434
strategy:
3535
matrix:
36-
fixture: ${{ fromJson(inputs.fixtures || '["next", "astro", "vue", "svelte"]') }}
37-
variation: ${{ fromJson(inputs.variations || '["cache", "cache+lockfile", "cache+node_modules", "cache+lockfile+node_modules", "clean", "lockfile", "lockfile+node_modules", "node_modules"]') }}
36+
fixture: ${{ fromJson(inputs.fixtures || '["next"]') }}
37+
variation: ${{ fromJson(inputs.variations || '["cache+lockfile+node_modules"]') }}
3838
include:
3939
- variation: "run"
4040
fixture: "run"
4141
env:
42-
BENCH_INCLUDE: ${{ fromJson(inputs.binaries || '"npm,yarn,berry,pnpm,vlt,bun,deno,nx,turbo,node"') }}
42+
BENCH_INCLUDE: ${{ fromJson(inputs.binaries || '"pnpm"') }}
4343
BENCH_WARMUP: ${{ inputs.warmup || '2' }}
44-
BENCH_RUNS: ${{ inputs.runs || '10' }}
44+
BENCH_RUNS: ${{ inputs.runs || '12' }}
4545
steps:
4646
- uses: actions/checkout@v4
4747
- name: Install Node
@@ -64,48 +64,3 @@ jobs:
6464
name: results-${{ matrix.fixture }}-${{ matrix.variation }}
6565
path: ./results/${{ matrix.fixture }}/${{ matrix.variation }}/
6666
retention-days: 7
67-
process:
68-
name: 'Process Results'
69-
runs-on: ubuntu-latest
70-
needs: [benchmark]
71-
timeout-minutes: 5
72-
steps:
73-
- uses: actions/checkout@v4
74-
- name: Install Node
75-
uses: actions/setup-node@v4
76-
with:
77-
node-version: '24'
78-
- name: Download Results
79-
uses: actions/download-artifact@v4
80-
with:
81-
path: results
82-
pattern: results-*
83-
- name: Process Results
84-
run: |
85-
bash ./scripts/process-results.sh
86-
- name: Upload Processed Results
87-
uses: actions/upload-artifact@v4
88-
with:
89-
name: charts
90-
path: charts
91-
retention-days: 7
92-
deploy:
93-
name: 'Deploy Results'
94-
runs-on: ubuntu-latest
95-
needs: [process]
96-
permissions:
97-
contents: write
98-
# if: github.ref == 'refs/heads/main'
99-
steps:
100-
- uses: actions/checkout@v4
101-
- name: Download Results
102-
uses: actions/download-artifact@v4
103-
with:
104-
name: charts
105-
path: charts/
106-
- name: Deploy to GitHub Pages
107-
uses: peaceiris/actions-gh-pages@v3
108-
with:
109-
github_token: ${{ secrets.GITHUB_TOKEN }}
110-
publish_dir: charts
111-
force_orphan: true

scripts/variations/cache+lockfile+node_modules.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ source "$1/variations/common.sh"
88
# When running a cache benchmark, we want to clean up only the node_modules
99
# directory and the lockfiles between each run.
1010
hyperfine --ignore-failure \
11+
--show-output \
1112
--time-unit=millisecond \
1213
--export-json="$BENCH_OUTPUT_FOLDER/benchmarks.json" \
1314
--warmup="$BENCH_WARMUP" \

0 commit comments

Comments
 (0)