Closed StarpTech closed 7 years ago
When I copy the pattern on every cycle the error does not appear.
const Benchmark = require('benchmark')
const suite = new Benchmark.Suite()
const bloomrun = require('..')()
suite.add('bloomrun#add', () => {
bloomrun.add(Object.assign({}, {test: 'pattern'}), 'test pattern')
})
suite.on('cycle', event => console.log(String(event.target))).run()
Is this happening only with your fix, or in some other case as well?
It happens also without my fix.
It's not happening on Mac OS X on master. It might be Windows related.
@mcollina any idea how to fix this? Should we open an issue in NodeJs ?
I would not worry too much about this benchmark. We are adding an unspecified number of objects to bloomrun, and this might be too much for it. A better approach to verify find, lookup and list is to add a limited amount (say 10000) of patterns, and then run the benchmarks.
This not critical but preventing us to bench on window systems and this is not great and the fact that it behaves differently on Windows and Mac.
Already mentioned in PR #58 It runs out of memory when I run the
bench2.js
onNode 6,8
but it works onNode 4