f2b80c7198d71872e6ad858c7db661b1894ee46b
1 const { FixedClusterPool
} = require('../../../lib/index')
5 const fixedPool
= new FixedClusterPool(
7 './benchmarks/internal/cluster/worker.js',
13 async
function fixedClusterTest (
14 { tasks
, workerData
} = { tasks
: 1, workerData
: { proof
: 'ok' } }
16 return new Promise((resolve
, reject
) => {
18 for (let i
= 0; i
<= tasks
; i
++) {
23 if (executions
=== tasks
) {
24 return resolve('FINISH')
35 module
.exports
= { fixedClusterTest
}