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=69f2cb6e003d2128e68be673a21f3488e5d57645;hp=17543d4bcd45afb4f52cc05f33df223820ad23cb;hpb=144f78e0cf2579cbd0a05ea30bc95ac6b57050f3;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 17543d4b..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 @@ -4,15 +4,15 @@ const { StaticPool } = require('node-worker-threads-pool') // 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 })