- case 'mitata':
- fixedThreadPool = buildPoolifierBenchmarkMitata(
- 'FixedThreadPool',
- WorkerTypes.thread,
- PoolTypes.fixed,
- poolSize,
- {
- taskExecutions,
- workerData
- }
- )
- dynamicThreadPool = buildPoolifierBenchmarkMitata(
- 'DynamicThreadPool',
- WorkerTypes.thread,
- PoolTypes.dynamic,
- poolSize,
- {
- taskExecutions,
- workerData
- }
- )
- fixedClusterPool = buildPoolifierBenchmarkMitata(
- 'FixedClusterPool',
- WorkerTypes.cluster,
- PoolTypes.fixed,
- poolSize,
- {
- taskExecutions,
- workerData
- }
- )
- dynamicClusterPool = buildPoolifierBenchmarkMitata(
- 'DynamicClusterPool',
- WorkerTypes.cluster,
- PoolTypes.dynamic,
- poolSize,
- {
- taskExecutions,
- workerData
- }
- )
- await run()
- await fixedThreadPool.destroy()
- await dynamicThreadPool.destroy()
- await fixedClusterPool.destroy()
- await dynamicClusterPool.destroy()
- break
- case 'benchmark.js':