X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Fstatic-node-worker-threads-pool.mjs;h=d37677cdb1294190d9663365e0a39d89d986b973;hb=1c25f937c2fd468cf1363b360d8f87aceaae6e9a;hp=3275d6f26e3a9a75574c4e0b961375a953fcf1f4;hpb=479ba9f6225633cd90167c26aa0fe0e79401b989;p=poolifier.git diff --git a/benchmarks/versus-external-pools/static-node-worker-threads-pool.mjs b/benchmarks/versus-external-pools/static-node-worker-threads-pool.mjs index 3275d6f2..d37677cd 100644 --- a/benchmarks/versus-external-pools/static-node-worker-threads-pool.mjs +++ b/benchmarks/versus-external-pools/static-node-worker-threads-pool.mjs @@ -10,7 +10,7 @@ const data = { taskSize: parseInt(process.env.TASK_SIZE) } -const pool = new StaticPool({ +const staticPool = new StaticPool({ size, task: functionToBench }) @@ -18,7 +18,7 @@ const pool = new StaticPool({ async function run () { const promises = new Set() for (let i = 0; i < iterations; i++) { - promises.add(pool.exec(data)) + promises.add(staticPool.exec(data)) } await Promise.all(promises) // eslint-disable-next-line n/no-process-exit