Skip to content

Commit cd466a9

Browse files
committed
ci: test node GC settings in browser perf experiment
1 parent 0184b60 commit cd466a9

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

‎.github/workflows/exp-browser-perf.yml‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
include:
20-
- { id: A-threads, shard: 1/2, coverage: true }
21-
- { id: B-threads, shard: 1/2, coverage: false }
20+
- { id: A-control, node_options: '' }
21+
- { id: G-semi64, node_options: '--max-semi-space-size=64' }
22+
- {
23+
id: H-semi64-old8g,
24+
node_options: '--max-semi-space-size=64 --max-old-space-size=8192',
25+
}
26+
- { id: J-cpu-prof, node_options: 'PROFILE' }
2227
defaults:
2328
run:
2429
shell: bash
@@ -59,8 +64,14 @@ jobs:
5964
sleep 10
6065
done
6166
) > ../perf/threads.log &
62-
args=(--project browser --silent=passed-only --shard=${{ matrix.shard }} --reporter=dot --reporter=json --outputFile.json=../perf/report.json)
63-
if [ '${{ matrix.coverage }}' = 'true' ]; then args+=(--coverage); fi
67+
args=(--project browser --silent=passed-only --shard=1/2 --reporter=dot --reporter=json --outputFile.json=../perf/report.json)
68+
args+=(--coverage)
69+
if [ '${{ matrix.node_options }}' = 'PROFILE' ]; then
70+
export NODE_OPTIONS="--cpu-prof --cpu-prof-dir=$GITHUB_WORKSPACE/perf/prof --cpu-prof-interval=5000"
71+
elif [ -n '${{ matrix.node_options }}' ]; then
72+
export NODE_OPTIONS='${{ matrix.node_options }}'
73+
fi
74+
echo "NODE_OPTIONS=$NODE_OPTIONS"
6475
start=$(date +%s)
6576
vp test run "${args[@]}"
6677
echo "wall=$(( $(date +%s) - start ))s" | tee ../perf/wall.txt

0 commit comments

Comments
 (0)