const { runPoolifierTest } = require('../benchmark-utils')
const size = 30
+const numberOfTasks = 1
const dynamicPool = new DynamicClusterPool(
size / 2,
)
async function dynamicClusterTest (
- { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
+ { tasks, workerData } = { tasks: numberOfTasks, workerData: { proof: 'ok' } }
) {
return runPoolifierTest(dynamicPool, { tasks, workerData })
}
async function dynamicClusterTestLessRecentlyUsed (
- { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
+ { tasks, workerData } = { tasks: numberOfTasks, workerData: { proof: 'ok' } }
) {
return runPoolifierTest(dynamicPoolLessRecentlyUsed, { tasks, workerData })
}