File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 27
27
- uses : ./.github/actions/prepare-rspack-binding
28
28
with :
29
29
path : ${{ env.RSPACK_DIR }}
30
+ ref : 93a5923cc47582581bf21b8eb7a38e3b23328fae
30
31
31
32
bench :
32
33
needs : prepare-binding
45
46
- uses : ./.github/actions/build-rspack
46
47
with :
47
48
path : ${{ env.RSPACK_DIR }}
49
+ ref : 93a5923cc47582581bf21b8eb7a38e3b23328fae
48
50
- name : Run benchmark
49
51
run : node --expose-gc bin/cli.js bench --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
50
52
- id : print-compare-results
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import {
11
11
getHmrConfig
12
12
} from "./utils.js" ;
13
13
14
+ const wait = ms => new Promise ( resolve => setTimeout ( resolve , ms ) ) ;
15
+
14
16
const rootDir = path . resolve ( fileURLToPath ( import . meta. url ) , "../../.." ) ;
15
17
16
18
async function runRspack ( ctx ) {
@@ -136,6 +138,7 @@ module.exports.plugins.push(new (require("../../lib/scenarios/build-plugin.cjs")
136
138
137
139
if ( global . gc ) {
138
140
global . gc ( ) ;
141
+ await wait ( 1000 ) ;
139
142
} else {
140
143
console . log ( 'Garbage collection is not exposed.' ) ;
141
144
}
You can’t perform that action at this time.
0 commit comments