// IMPORT LIBRARIES
-const { FixedThreadPool } = require('poolifier')
+import { FixedThreadPool } from 'poolifier'
// FINISH IMPORT LIBRARIES
const size = parseInt(process.env.POOL_SIZE)
const iterations = parseInt(process.env.NUM_ITERATIONS)
const fixedPool = new FixedThreadPool(
size,
- './workers/poolifier/function-to-bench-worker.js'
+ './workers/poolifier/function-to-bench-worker.mjs'
)
async function run () {
process.exit()
}
-run()
+await run()