+import { exit } from 'node:process'
+
import {
+ availableParallelism,
PoolTypes,
- WorkerTypes,
- availableParallelism
+ WorkerTypes
} from '../../lib/index.mjs'
-import { TaskFunctions } from '../benchmarks-types.js'
-import { runPoolifierPoolBenchmark } from '../benchmarks-utils.js'
+import { TaskFunctions } from '../benchmarks-types.cjs'
+import { runPoolifierPoolBenchmark } from '../benchmarks-utils.cjs'
const poolSize = availableParallelism()
const taskExecutions = 1
// FixedThreadPool
await runPoolifierPoolBenchmark(
- 'Poolifier FixedThreadPool',
+ 'FixedThreadPool',
WorkerTypes.thread,
PoolTypes.fixed,
poolSize,
// DynamicThreadPool
await runPoolifierPoolBenchmark(
- 'Poolifier DynamicThreadPool',
+ 'DynamicThreadPool',
WorkerTypes.thread,
PoolTypes.dynamic,
poolSize,
// FixedClusterPool
await runPoolifierPoolBenchmark(
- 'Poolifier FixedClusterPool',
+ 'FixedClusterPool',
WorkerTypes.cluster,
PoolTypes.fixed,
poolSize,
// DynamicClusterPool
await runPoolifierPoolBenchmark(
- 'Poolifier DynamicClusterPool',
+ 'DynamicClusterPool',
WorkerTypes.cluster,
PoolTypes.dynamic,
poolSize,
workerData
}
)
+
+exit()