X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fbench.mjs;h=8bae6aaf7794ce3d181547a1401ca87455be2c02;hb=e06ce0ec82c8c076d6136f85f12101181d922612;hp=3f467f9ea49689d642a4b9eae087416d806a9735;hpb=0b35a7a91cf79420f991141cf0a2a45aaaa20a08;p=poolifier.git diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 3f467f9e..8bae6aaf 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -6,19 +6,19 @@ import { parseArgs } from 'node:util' import { availableParallelism, PoolTypes, - WorkerTypes + WorkerTypes, } from '../../lib/index.mjs' import { TaskFunctions } from '../benchmarks-types.cjs' import { convertTatamiNgToBmf, - runPoolifierBenchmarkTatamiNg + runPoolifierBenchmarkTatamiNg, } from '../benchmarks-utils.mjs' const poolSize = availableParallelism() const taskExecutions = 1 const workerData = { function: TaskFunctions.factorial, - taskSize: 1000 + taskSize: 1000, } const benchmarkReportFile = 'benchmark-report.json' let benchmarkReport @@ -29,11 +29,11 @@ switch ( options: { type: { type: 'string', - short: 't' - } + short: 't', + }, }, strict: true, - allowPositionals: true + allowPositionals: true, }).values.type ) { case 'tatami-ng': @@ -46,7 +46,7 @@ switch ( poolSize, { taskExecutions, - workerData + workerData, } ) ) @@ -60,10 +60,10 @@ switch ( poolSize, { taskExecutions, - workerData + workerData, } ) - ) + ), } benchmarkReport = { ...benchmarkReport, @@ -75,10 +75,10 @@ switch ( poolSize, { taskExecutions, - workerData + workerData, } ) - ) + ), } benchmarkReport = { ...benchmarkReport, @@ -90,11 +90,12 @@ switch ( poolSize, { taskExecutions, - workerData + workerData, } ) - ) + ), } + // eslint-disable-next-line @typescript-eslint/no-unused-expressions env.CI != null && writeFileSync(benchmarkReportFile, JSON.stringify(benchmarkReport)) break