X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffixed-threadwork.js;h=d21fae6a8e2179704af88fb420c40f2c338deb1a;hb=493f77bdef6d66ad2fcb72b405c805274b24f3db;hp=8a036fbd812ae2b148dac418b5e51ebd88d955e9;hpb=7a6a0a967f5d0978d7ad0714616194fe7592f69a;p=poolifier.git diff --git a/benchmarks/versus-external-pools/fixed-threadwork.js b/benchmarks/versus-external-pools/fixed-threadwork.js index 8a036fbd..d21fae6a 100644 --- a/benchmarks/versus-external-pools/fixed-threadwork.js +++ b/benchmarks/versus-external-pools/fixed-threadwork.js @@ -1,11 +1,11 @@ // IMPORT LIBRARIES const threadPool = require('./pool-threadwork') // FINISH IMPORT LIBRARIES -const iterations = Number(process.env.NUM_ITERATIONS) +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) } async function run () { @@ -14,7 +14,7 @@ async function run () { promises.push(threadPool.run(data)) } await Promise.all(promises) - // eslint-disable-next-line no-process-exit + // eslint-disable-next-line n/no-process-exit process.exit() }