X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffixed-piscina.js;h=8a92dbea5b6a7709f8b2df90b77f7a8ce170d394;hb=adc3c320dca41a7dd3605a481266158cdae908cd;hp=fc8a87c147d0f3f9269d6cb7ea3a462aff73f985;hpb=2f8c5b5c1182f698efe07d327359bef934af3a29;p=poolifier.git diff --git a/benchmarks/versus-external-pools/fixed-piscina.js b/benchmarks/versus-external-pools/fixed-piscina.js index fc8a87c1..8a92dbea 100644 --- a/benchmarks/versus-external-pools/fixed-piscina.js +++ b/benchmarks/versus-external-pools/fixed-piscina.js @@ -1,12 +1,12 @@ // IMPORT LIBRARIES const Piscina = require('piscina') // FINISH IMPORT LIBRARIES -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 piscina = new Piscina({