// IMPORT LIBRARIES
-const { FixedThreadPool, DynamicThreadPool } = require('poolifier')
+const { FixedThreadPool } = require('poolifier')
// FINISH IMPORT LIBRARIES
-const size = process.env.POOL_SIZE
-const iterations = process.env.NUM_ITERATIONS
+const size = Number(process.env.POOL_SIZE)
+const iterations = Number(process.env.NUM_ITERATIONS)
const data = {
test: 'MYBENCH',
taskType: process.env['TASK_TYPE']
const fixedPool = new FixedThreadPool(
size,
- './workers/poolifier/function-to-bench-worker.js',
- {
- maxTasks: 100000
- }
+ './workers/poolifier/function-to-bench-worker.js'
)
async function run () {