X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Fdynamic-poolifier.js;h=b20082a3541dfc9237c311a6c07c831fbe9721e8;hb=15db9ada70dc79acc82b8efa7888c666f24853b4;hp=e4f5f1322c45812f8750c1e43fa6de3ad3685256;hpb=be0676b3936d75f22ce55b0f71a1fb03d008a01c;p=poolifier.git diff --git a/benchmarks/versus-external-pools/dynamic-poolifier.js b/benchmarks/versus-external-pools/dynamic-poolifier.js index e4f5f132..b20082a3 100644 --- a/benchmarks/versus-external-pools/dynamic-poolifier.js +++ b/benchmarks/versus-external-pools/dynamic-poolifier.js @@ -1,19 +1,17 @@ // 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 const data = { - test: 'MYBENCH' + test: 'MYBENCH', + taskType: process.env['TASK_TYPE'] } const dynamicPool = new DynamicThreadPool( - size, + Number(size), size * 3, - './workers/poolifier/json-stringify.worker.js', - { - maxTasks: 10000 - } + './workers/poolifier/function-to-bench-worker.js' ) async function run () {