Bump @types/node from 14.14.31 to 14.14.32 (#258)
[poolifier.git] / benchmarks / internal / cluster / fixed.js
... / ...
CommitLineData
1const { FixedClusterPool } = require('../../../lib/index')
2const { runPoolifierTest } = require('../benchmark-utils')
3
4const size = 30
5
6const fixedPool = new FixedClusterPool(
7 size,
8 './benchmarks/internal/cluster/worker.js'
9)
10
11async function fixedClusterTest (
12 { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
13) {
14 return runPoolifierTest(fixedPool, { tasks, workerData })
15}
16
17module.exports = { fixedClusterTest }