File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments