Add worker-threads-pool to external pools benchmarks (#281)
[poolifier.git] / benchmarks / versus-external-pools / fixed-threadwork.js
index dfba6c00f645ccd46b27d8b26513643212a82794..fcc370ff1922f1a06b2f9b05e300872f67bc405e 100644 (file)
@@ -4,8 +4,8 @@ const { ThreadPool } = require('threadwork')
 // IMPORT FUNCTION TO BENCH
 const functionToBench = require('./functions/function-to-bench')
 // FINISH IMPORT FUNCTION TO BENCH
-const size = process.env.POOL_SIZE
-const iterations = process.env.NUM_ITERATIONS
+const size = Number(process.env.POOL_SIZE)
+const iterations = Number(process.env.NUM_ITERATIONS)
 const data = {
   test: 'MYBENCH',
   taskType: process.env['TASK_TYPE']