5 } from '../../lib/index.mjs'
6 import { TaskFunctions } from '../benchmarks-types.js'
9 runPoolifierPoolBenchmark
10 } from '../benchmarks-utils.js'
12 const poolSize = availableParallelism()
13 const taskExecutions = 1
15 function: TaskFunctions.jsonIntegerSerialization,
20 await runPoolifierPoolBenchmark(
21 'Poolifier FixedThreadPool',
22 buildPoolifierPool(WorkerTypes.thread, PoolTypes.fixed, poolSize),
30 await runPoolifierPoolBenchmark(
31 'Poolifier DynamicThreadPool',
32 buildPoolifierPool(WorkerTypes.thread, PoolTypes.dynamic, poolSize),
40 await runPoolifierPoolBenchmark(
41 'Poolifier FixedClusterPool',
42 buildPoolifierPool(WorkerTypes.cluster, PoolTypes.fixed, poolSize),
50 await runPoolifierPoolBenchmark(
51 'Poolifier DynamicClusterPool',
52 buildPoolifierPool(WorkerTypes.cluster, PoolTypes.dynamic, poolSize),