Add benchmark for quick select algorithm evaluation. (#255)
[poolifier.git] / benchmarks / internal / thread / fixed.js
CommitLineData
be0676b3 1const { FixedThreadPool } = require('../../../lib/index')
74750c7f 2const { runPoolifierTest } = require('../benchmark-utils')
325f50bc
S
3
4const size = 30
5
ff5e76e1
JB
6const fixedPool = new FixedThreadPool(
7 size,
8 './benchmarks/internal/thread/worker.js'
9)
325f50bc
S
10
11async function fixedThreadTest (
12 { tasks, workerData } = { tasks: 1, workerData: { proof: 'ok' } }
13) {
74750c7f 14 return runPoolifierTest(fixedPool, { tasks, workerData })
325f50bc
S
15}
16
17module.exports = { fixedThreadTest }