// IMPORT LIBRARIES
-import { resolve } from 'path'
import WorkerNodes from 'worker-nodes'
// FINISH IMPORT LIBRARIES
const size = parseInt(process.env.POOL_SIZE)
}
const workerNodes = new WorkerNodes(
- resolve('./workers/worker-nodes/function-to-bench-worker'),
+ import.meta.resolve('./workers/worker-nodes/function-to-bench-worker'),
{
minWorkers: size,
maxWorkers: size * 3,
// IMPORT LIBRARIES
-import { resolve } from 'path'
import WorkerNodes from 'worker-nodes'
// FINISH IMPORT LIBRARIES
const size = parseInt(process.env.POOL_SIZE)
}
const workerNodes = new WorkerNodes(
- resolve('./workers/worker-nodes/function-to-bench-worker'),
+ import.meta.resolve('./workers/worker-nodes/function-to-bench-worker'),
{
minWorkers: size,
maxWorkers: size,
'node dynamic-tinypool.mjs' \
'node dynamic-workerpool.mjs' \
'node fixed-workerpool.mjs' \
- 'node dynamic-worker-nodes.mjs' \
- 'node fixed-worker-nodes.mjs' \
+ 'node --experimental-import-meta-resolve dynamic-worker-nodes.mjs' \
+ 'node --experimental-import-meta-resolve fixed-worker-nodes.mjs' \
'node threadjs.mjs' \
'node fixed-threadwork.mjs' \
'node fixed-microjob.mjs'