1 import { exit } from 'node:process'
2 import { parseArgs } from 'node:util'
8 } from '../../lib/index.mjs'
9 import { TaskFunctions } from '../benchmarks-types.cjs'
11 runPoolifierBenchmarkBenchmarkJsSuite,
12 runPoolifierBenchmarkMitata
13 } from '../benchmarks-utils.mjs'
15 const poolSize = availableParallelism()
16 const taskExecutions = 1
18 function: TaskFunctions.factorial,
32 allowPositionals: true
36 await runPoolifierBenchmarkMitata(
46 await runPoolifierBenchmarkMitata(
56 await runPoolifierBenchmarkMitata(
66 await runPoolifierBenchmarkMitata(
79 await runPoolifierBenchmarkBenchmarkJsSuite(
89 await runPoolifierBenchmarkBenchmarkJsSuite(
99 await runPoolifierBenchmarkBenchmarkJsSuite(
109 await runPoolifierBenchmarkBenchmarkJsSuite(
110 'DynamicClusterPool',