Bump rollup from 2.41.5 to 2.42.0 (#283)
[poolifier.git] / benchmarks / versus-external-pools / dynamic-poolifier.js
index 42c06e62aaa15b363ca8120f3db463f8a95be185..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,7 +9,7 @@ const data = {
 }
 
 const dynamicPool = new DynamicThreadPool(
-  size,
+  Number(size),
   size * 3,
   './workers/poolifier/function-to-bench-worker.js'
 )