// IMPORT LIBRARIES
-const { FixedThreadPool, DynamicThreadPool } = require('poolifier')
+const { DynamicThreadPool } = require('poolifier')
// FINISH IMPORT LIBRARIES
const size = process.env.POOL_SIZE
const iterations = process.env.NUM_ITERATIONS
}
const dynamicPool = new DynamicThreadPool(
- size,
+ Number(size),
size * 3,
- './workers/poolifier/function-to-bench-worker.js',
- {
- maxTasks: 10000
- }
+ './workers/poolifier/function-to-bench-worker.js'
)
async function run () {