Bump typedoc from 0.20.29 to 0.20.30 (#256)
[poolifier.git] / benchmarks / internal / cluster / fixed.js
CommitLineData
be0676b3 1const { FixedClusterPool } = require('../../../lib/index')
ff5e76e1 2const { runTest } = require('../benchmark-utils')
325f50bc
S
3
4const size = 30
5
be0676b3
APA
6const fixedPool = new FixedClusterPool(
7 size,
1927ee67 8 './benchmarks/internal/cluster/worker.js'
be0676b3 9)
325f50bc
S
10
11async function fixedClusterTest (
12 { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
13) {
ff5e76e1 14 return runTest(fixedPool, { tasks, workerData })
325f50bc
S
15}
16
17module.exports = { fixedClusterTest }