5 } from '../../lib/index.mjs'
6 import { TaskFunctions } from '../benchmarks-types.mjs'
9 runPoolifierPoolBenchmark
10 } from '../benchmarks-utils.mjs'
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),