chore: generate documentation
[poolifier.git] / benchmarks / versus-external-pools / static-suchmokuo-node-worker-threads-pool.js
index 398c38edb826e6661976183b1b80f5a3b75fbe88..75f3d2a438fd3cc1b1a963e626f6b2cccecff69d 100644 (file)
@@ -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({
@@ -23,7 +23,7 @@ async function run () {
     promises.push(pool.exec(data))
   }
   await Promise.all(promises)
-  // eslint-disable-next-line no-process-exit
+  // eslint-disable-next-line n/no-process-exit
   process.exit()
 }