Error handling and unit tests
[poolifier.git] / benchmarks / myBench.js
index 45f11b296fbaa96408bdfd6caa923f257226eda7..9c1d713fc6820f8e3cefaa64a5785b13d50ae8ec 100644 (file)
@@ -2,12 +2,12 @@ const FixedThreadPool = require('../lib/fixed')
 const DynamicThreadPool = require('../lib/dynamic')
 const Pool = require('worker-threads-pool')
 const tasks = 1000
-const size = 10
+const size = 16
 
 // pools
 const externalPool = new Pool({ max: size })
 const fixedPool = new FixedThreadPool(size, './yourWorker.js', { maxTasks: 10000 })
-const dynamicPool = new DynamicThreadPool(size / 2, 50, './yourWorker.js', { maxTasks: 10000 })
+const dynamicPool = new DynamicThreadPool(size / 2, size * 3, './yourWorker.js', { maxTasks: 10000 })
 
 // data
 const workerData = { proof: 'ok' }