const { runPoolifierTest } = require('../benchmark-utils')
const size = 30
+const numberOfTasks = 1
const fixedPool = new FixedThreadPool(
size,
)
async function fixedThreadTest (
- { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
+ { tasks, workerData } = { tasks: numberOfTasks, workerData: { proof: 'ok' } }
) {
return runPoolifierTest(fixedPool, { tasks, workerData })
}
async function fixedThreadTestLessRecentlyUsed (
- { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
+ { tasks, workerData } = { tasks: numberOfTasks, workerData: { proof: 'ok' } }
) {
return runPoolifierTest(fixedPoolLessRecentlyUsed, { tasks, workerData })
}