1 import { writeFileSync } from 'node:fs'
2 import { env } from 'node:process'
3 // eslint-disable-next-line n/no-unsupported-features/node-builtins
4 import { parseArgs } from 'node:util'
10 } from '../../lib/index.mjs'
11 import { TaskFunctions } from '../benchmarks-types.cjs'
14 runPoolifierBenchmarkTatamiNg,
15 } from '../benchmarks-utils.mjs'
17 const poolSize = availableParallelism()
18 const taskExecutions = 1
20 function: TaskFunctions.factorial,
23 const benchmarkReportFile = 'benchmark-report.json'
36 allowPositionals: true,
41 benchmarkReport = convertTatamiNgToBmf(
42 await runPoolifierBenchmarkTatamiNg(
55 ...convertTatamiNgToBmf(
56 await runPoolifierBenchmarkTatamiNg(
70 ...convertTatamiNgToBmf(
71 await runPoolifierBenchmarkTatamiNg(
85 ...convertTatamiNgToBmf(
86 await runPoolifierBenchmarkTatamiNg(
98 // eslint-disable-next-line @typescript-eslint/no-unused-expressions
100 writeFileSync(benchmarkReportFile, JSON.stringify(benchmarkReport))