X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Fstatic-suchmokuo-node-worker-threads-pool.js;h=75f3d2a438fd3cc1b1a963e626f6b2cccecff69d;hb=628134dbd19951f3f60bf4a99bfc7607bd2a8161;hp=1c8f0d7f1bb2ece8a945682e0470334550a179db;hpb=2f8c5b5c1182f698efe07d327359bef934af3a29;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 1c8f0d7f..75f3d2a4 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,12 +4,12 @@ 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 = Number(process.env.POOL_SIZE) -const iterations = Number(process.env.NUM_ITERATIONS) +const size = parseInt(process.env.POOL_SIZE) +const iterations = parseInt(process.env.NUM_ITERATIONS) const data = { test: 'MYBENCH', taskType: process.env.TASK_TYPE, - taskSize: process.env.TASK_SIZE + taskSize: parseInt(process.env.TASK_SIZE) } const pool = new StaticPool({