Skip to content

Commit 05982c9

Browse files
committed
debug
1 parent c484c1f commit 05982c9

File tree

10 files changed

+14
-6
lines changed

10 files changed

+14
-6
lines changed

.github/workflows/benchmark.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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 || '["astro"]') }}
37+
variation: ${{ fromJson(inputs.variations || '["clean"]') }}
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"') }}
43-
BENCH_WARMUP: ${{ inputs.warmup || '2' }}
44-
BENCH_RUNS: ${{ inputs.runs || '10' }}
42+
BENCH_INCLUDE: ${{ fromJson(inputs.binaries || '"npnpm,vlt,bun"') }}
43+
BENCH_WARMUP: ${{ inputs.warmup || '1' }}
44+
BENCH_RUNS: ${{ inputs.runs || '2' }}
4545
steps:
4646
- uses: actions/checkout@v4
4747
- name: Install Node

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" \

scripts/variations/cache+lockfile.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" \

scripts/variations/cache+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" \

scripts/variations/cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ source "$1/variations/common.sh"
77
# Run the benchmark suite
88
# When running a cache benchmark, we want to clean up only the node_modules
99
# directory and the lockfiles between each run.
10-
echo "Hyperfine version: $(hyperfine --version)"
1110
hyperfine --ignore-failure \
11+
--show-output \
1212
--time-unit=millisecond \
1313
--export-json="$BENCH_OUTPUT_FOLDER/benchmarks.json" \
1414
--warmup="$BENCH_WARMUP" \

scripts/variations/clean.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ source "$1/variations/common.sh"
99
# between each run using the clean-helper.sh script.
1010
echo "Hyperfine version: $(hyperfine --version)"
1111
hyperfine --ignore-failure \
12+
--show-output \
1213
--time-unit=millisecond \
1314
--export-json="$BENCH_OUTPUT_FOLDER/benchmarks.json" \
1415
--warmup="$BENCH_WARMUP" \

scripts/variations/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" \

scripts/variations/lockfile.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" \

scripts/variations/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" \

scripts/variations/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ BENCH_COMMAND_NODE="node --run test > $BENCH_OUTPUT_FOLDER/node-run-output-\${HY
3535
# The install step is defined as a "prepare" option so that time spent
3636
# on the install is not accounted for in the benchmark results.
3737
hyperfine --ignore-failure \
38+
--show-output \
3839
--time-unit=millisecond \
3940
--export-json="$BENCH_OUTPUT_FOLDER/benchmarks.json" \
4041
--warmup="$BENCH_WARMUP" \

0 commit comments

Comments
 (0)