}
const tinypool = new Tinypool({
- filename: './workers/tinypool/function-to-bench-worker.js',
+ filename: './workers/tinypool/function-to-bench-worker.mjs',
minThreads: size,
maxThreads: size * 3,
idleTimeout: 60000 // this is the same as poolifier default
process.exit()
}
-run()
+await run()