You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/test.js
+39-26Lines changed: 39 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,14 @@ try {
15
15
process.exit(-1);
16
16
}
17
17
18
-
console.log("\nStarting tests...");
18
+
try{
19
+
global.gc();
20
+
}catch(ex){
21
+
console.log("You get more accurate timings by running with the node option --expose-gc");
22
+
global.gc=function(){};
23
+
}
24
+
25
+
console.log("\nNB:The timings here are only indicative. GC and poor sampling generate variable results. More detailed performance tests can be found in "+"nodent".cyan+"\nStarting tests...");
0 commit comments