966fc0e19ce42bae944a3ea8a4f2484e64870dc1
[poolifier.git] / benchmarks / internal / thread / fixed.js
1 const { FixedThreadPool } = require('../../../lib/index')
2 const { runPoolifierTest } = require('../benchmark-utils')
3
4 const size = 30
5
6 const fixedPool = new FixedThreadPool(
7 size,
8 './benchmarks/internal/thread/worker.js'
9 )
10
11 async function fixedThreadTest (
12 { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
13 ) {
14 return runPoolifierTest(fixedPool, { tasks, workerData })
15 }
16
17 module.exports = { fixedThreadTest }