X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Fstatic-suchmokuo-node-worker-threads-pool.js;h=ded55b882a8e66cd9bfbf0c8367e2b8de6e6eb7a;hb=b3432a63039e7cb70c0448da5518690e457cd47e;hp=fa151d586947c719db67f6697314d0b2779284dd;hpb=9f7e7a99ea7dfa6f2fb3c2e0e025b85cfdd4e22e;p=poolifier.git diff --git a/benchmarks/versus-external-pools/static-suchmokuo-node-worker-threads-pool.js b/benchmarks/versus-external-pools/static-suchmokuo-node-worker-threads-pool.js index fa151d58..ded55b88 100644 --- a/benchmarks/versus-external-pools/static-suchmokuo-node-worker-threads-pool.js +++ b/benchmarks/versus-external-pools/static-suchmokuo-node-worker-threads-pool.js @@ -1,18 +1,18 @@ // IMPORT LIBRARIES -const { DynamicPool, StaticPool } = require('node-worker-threads-pool') +const { StaticPool } = require('node-worker-threads-pool') // FINISH IMPORT LIBRARIES // IMPORT FUNCTION TO BENCH const functionToBench = require('./functions/function-to-bench') // FINISH IMPORT FUNCTION TO BENCH -const size = process.env.POOL_SIZE -const iterations = process.env.NUM_ITERATIONS +const size = Number(process.env.POOL_SIZE) +const iterations = Number(process.env.NUM_ITERATIONS) const data = { test: 'MYBENCH', taskType: process.env['TASK_TYPE'] } const pool = new StaticPool({ - size: Number(size), + size: size, task: functionToBench })