Add worker-threads-pool to external pools benchmarks (#281)
[poolifier.git] / benchmarks / versus-external-pools / dynamic-poolifier.js
index 42c06e62aaa15b363ca8120f3db463f8a95be185..f466d28a3cbfe7e83c8914851cfa3897d9cf6dc5 100644 (file)
@@ -1,8 +1,8 @@
 // IMPORT LIBRARIES
-const { FixedThreadPool, DynamicThreadPool } = require('poolifier')
+const { DynamicThreadPool } = require('poolifier')
 // FINISH IMPORT LIBRARIES
-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']