}
JSON.stringify(o)
}
+ return { ok: 1 }
}
/**
fs.readFileSync(filePath, 'utf8')
}
fs.rmSync(baseDirectory, { recursive: true })
+ return { ok: 1 }
}
export const executeWorkerFunction = data => {
case WorkerTypes.thread:
return new DynamicThreadPool(
Math.floor(poolSize / 2),
- poolSize * 3,
+ poolSize,
'./benchmarks/internal/thread-worker.mjs',
poolOptions
)
case WorkerTypes.cluster:
return new DynamicClusterPool(
Math.floor(poolSize / 2),
- poolSize * 3,
+ poolSize,
'./benchmarks/internal/cluster-worker.mjs',
poolOptions
)