build: refine ignored files
[poolifier.git] / benchmarks / versus-external-pools / dynamic-suchmokuo-node-worker-threads-pool.js
index f6e32414e60872724d113c0baa81ca7b6b605995..0a56d1fd2326555ca7804d4850efb87670a517f2 100644 (file)
@@ -4,12 +4,12 @@ const { DynamicPool } = 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 DynamicPool(size)
@@ -25,7 +25,7 @@ async function run () {
     )
   }
   await Promise.all(promises)
-  // eslint-disable-next-line no-process-exit
+  // eslint-disable-next-line n/no-process-exit
   process.exit()
 }