Improvement on benchmarks
[poolifier.git] / benchmarks / versus-external-pools / dynamic-suchmokuo-node-worker-threads-pool.js
index 8bf964d24119aa5cbaf746378859a2c8065add74..c183e536c688235b734943e000614df13ddcd748 100644 (file)
@@ -2,12 +2,13 @@
 const { DynamicPool, StaticPool } = require('node-worker-threads-pool')
 // FINISH IMPORT LIBRARIES
 // IMPORT FUNCTION TO BENCH
-const functionToBench = require('./functions/json-stringify')
+const functionToBench = require('./functions/function-to-bench')
 // FINISH IMPORT FUNCTION TO BENCH
 const size = process.env.POOL_SIZE
 const iterations = process.env.NUM_ITERATIONS
 const data = {
-  test: 'MYBENCH'
+  test: 'MYBENCH',
+  taskType: process.env['TASK_TYPE']
 }
 
 const pool = new DynamicPool(Number(size))