File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 46
46
with :
47
47
path : ${{ env.RSPACK_DIR }}
48
48
- name : Run benchmark
49
- run : node bin/cli.js bench --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
49
+ run : node --expose-gc bin/cli.js bench --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
50
50
- id : print-compare-results
51
51
name : Print compare results
52
52
run : |
Original file line number Diff line number Diff line change @@ -134,6 +134,12 @@ module.exports.plugins.push(new (require("../../lib/scenarios/build-plugin.cjs")
134
134
for ( let i = 0 ; i < ctx . runTimes ; i ++ ) {
135
135
await clearCaches ( ctx . caseDir ) ;
136
136
137
+ if ( global . gc ) {
138
+ global . gc ( ) ;
139
+ } else {
140
+ console . log ( 'Garbage collection is not exposed.' ) ;
141
+ }
142
+
137
143
ctx . runData . push ( await runRspack ( ctx ) ) ;
138
144
139
145
const runtime = Date . now ( ) - start ;
You can’t perform that action at this time.
0 commit comments