New benchmarking without any library to better understand how the bench is executed...
[poolifier.git] / examples / dynamicExample.js
index d483684de442ad97f6d721c316e0f20bb32eacbe..68c6b6f11f7d09536f754ca5c0ee7a4dedbd89c6 100644 (file)
@@ -1,7 +1,7 @@
 const DynamicThreadPool = require('../lib/dynamic')
 let resolved = 0
 let maxReached = 0
-const pool = new DynamicThreadPool(100, 200, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') })
+const pool = new DynamicThreadPool(10, 20, './yourWorker.js', { errorHandler: (e) => console.error(e), onlineHandler: () => console.log('worker is online') })
 pool.emitter.on('FullPool', () => maxReached++)
 
 const start = Date.now()