Update dependencies (#279)
[poolifier.git] / benchmarks / versus-external-pools / dynamic-poolifier.js
index 6a7406bc9913c0a83efd918008dd27418efed3e1..b20082a3541dfc9237c311a6c07c831fbe9721e8 100644 (file)
@@ -1,5 +1,5 @@
 // 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
@@ -9,12 +9,9 @@ const data = {
 }
 
 const dynamicPool = new DynamicThreadPool(
-  size,
+  Number(size),
   size * 3,
-  './workers/poolifier/function-to-bench-worker.js',
-  {
-    maxTasks: 10000
-  }
+  './workers/poolifier/function-to-bench-worker.js'
 )
 
 async function run () {