{ workerChoiceStrategy: WorkerChoiceStrategies.LESS_USED }
)
+const fixedPoolLessBusy = new FixedClusterPool(
+ size,
+ './benchmarks/internal/cluster/worker.js',
+ { workerChoiceStrategy: WorkerChoiceStrategies.LESS_BUSY }
+)
+
const fixedPoolWeightedRoundRobin = new FixedClusterPool(
size,
'./benchmarks/internal/cluster/worker.js',
return runPoolifierTest(fixedPoolLessUsed, { tasks, workerData })
}
+async function fixedClusterTestLessBusy (
+ { tasks, workerData } = { tasks: numberOfTasks, workerData: { proof: 'ok' } }
+) {
+ return runPoolifierTest(fixedPoolLessBusy, { tasks, workerData })
+}
+
async function fixedClusterTestWeightedRoundRobin (
{ tasks, workerData } = { tasks: numberOfTasks, workerData: { proof: 'ok' } }
) {
module.exports = {
fixedClusterTest,
fixedClusterTestLessUsed,
+ fixedClusterTestLessBusy,
fixedClusterTestWeightedRoundRobin,
fixedClusterTestFairShare
}