7ad60eeb3cf0b5b5ff1b3601b725f4adf58a6469
1 const { FixedThreadPool
} = require('../../../lib/index')
2 const { runTest
} = require('../benchmark-utils')
6 const fixedPool
= new FixedThreadPool(
8 './benchmarks/internal/thread/worker.js'
11 async
function fixedThreadTest (
12 { tasks
, workerData
} = { tasks
: 1, workerData
: { proof
: 'ok' } }
14 return runTest(fixedPool
, { tasks
, workerData
})
17 module
.exports
= { fixedThreadTest
}