build: refine ignored files
[poolifier.git] / benchmarks / versus-external-pools / pool-threadwork.js
index 5e5e04e33fe8fbc73905134eb16b596f58e1e28f..2a2844f0e447d1fdf25608b53e63386b4e008232 100644 (file)
@@ -4,6 +4,6 @@ const { ThreadPool } = require('threadwork')
 // IMPORT FUNCTION TO BENCH
 const functionToBench = require('./functions/function-to-bench')
 // FINISH IMPORT FUNCTION TO BENCH
-const size = Number(process.env.POOL_SIZE)
+const size = parseInt(process.env.POOL_SIZE)
 
-module.exports = new ThreadPool({ task: functionToBench, size: size })
+module.exports = new ThreadPool({ task: functionToBench, size })