X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fbench.mjs;h=adff36153241f7843f702547237280a509bb7326;hb=b22361f4474e4a63a7482741d98f0c58b4b03b4c;hp=7ef61bc6cba31225a4d8732b721422494deeb4d3;hpb=229e9e73566ed1960ba5be0534fb3aa2eeb115eb;p=poolifier.git diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 7ef61bc6..adff3615 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -4,10 +4,7 @@ import { availableParallelism } from '../../lib/index.mjs' import { TaskFunctions } from '../benchmarks-types.js' -import { - buildPoolifierPool, - runPoolifierPoolBenchmark -} from '../benchmarks-utils.js' +import { runPoolifierPoolBenchmark } from '../benchmarks-utils.js' const poolSize = availableParallelism() const taskExecutions = 1 @@ -18,8 +15,10 @@ const workerData = { // FixedThreadPool await runPoolifierPoolBenchmark( - 'Poolifier FixedThreadPool', - buildPoolifierPool(WorkerTypes.thread, PoolTypes.fixed, poolSize), + 'FixedThreadPool', + WorkerTypes.thread, + PoolTypes.fixed, + poolSize, { taskExecutions, workerData @@ -28,8 +27,10 @@ await runPoolifierPoolBenchmark( // DynamicThreadPool await runPoolifierPoolBenchmark( - 'Poolifier DynamicThreadPool', - buildPoolifierPool(WorkerTypes.thread, PoolTypes.dynamic, poolSize), + 'DynamicThreadPool', + WorkerTypes.thread, + PoolTypes.dynamic, + poolSize, { taskExecutions, workerData @@ -38,8 +39,10 @@ await runPoolifierPoolBenchmark( // FixedClusterPool await runPoolifierPoolBenchmark( - 'Poolifier FixedClusterPool', - buildPoolifierPool(WorkerTypes.cluster, PoolTypes.fixed, poolSize), + 'FixedClusterPool', + WorkerTypes.cluster, + PoolTypes.fixed, + poolSize, { taskExecutions, workerData @@ -48,8 +51,10 @@ await runPoolifierPoolBenchmark( // DynamicClusterPool await runPoolifierPoolBenchmark( - 'Poolifier DynamicClusterPool', - buildPoolifierPool(WorkerTypes.cluster, PoolTypes.dynamic, poolSize), + 'DynamicClusterPool', + WorkerTypes.cluster, + PoolTypes.dynamic, + poolSize, { taskExecutions, workerData