Skip to content

Commit

Permalink
Ensure matcher survives gc (just to be sure - seems to anyway)
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Aug 9, 2017
1 parent 1a8f90e commit 5335763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aedes/bench/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ function times(QlobberClass, add, remove, match)
console.log(
'heap:', ((end_mem.heapUsed - start_mem.heapUsed) / 1024 / 1024).toFixed(1) + 'MiB',
'rss:', ((end_mem.rss - start_mem.rss) / 1024 / 1024).toFixed(1) + 'MiB');

matcher.clear(); // ensure matcher is kept alive for gc above
}

module.exports = times;

0 comments on commit 5335763

Please sign in to comment.