X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffixed-poolifier.js;h=f45734352c698cc49b836232ffc433ae792a3ed6;hb=f0025826a49499c04af0003481d74f5b93fce94d;hp=b62cd5934424a0fb9dc3422011ba98242ae717be;hpb=be0676b3936d75f22ce55b0f71a1fb03d008a01c;p=poolifier.git diff --git a/benchmarks/versus-external-pools/fixed-poolifier.js b/benchmarks/versus-external-pools/fixed-poolifier.js index b62cd593..f4573435 100644 --- a/benchmarks/versus-external-pools/fixed-poolifier.js +++ b/benchmarks/versus-external-pools/fixed-poolifier.js @@ -1,18 +1,16 @@ // IMPORT LIBRARIES -const { FixedThreadPool, DynamicThreadPool } = require('poolifier') +const { FixedThreadPool } = 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 fixedPool = new FixedThreadPool( - size, - './workers/poolifier/json-stringify.worker.js', - { - maxTasks: 100000 - } + Number(size), + './workers/poolifier/function-to-bench-worker.js' ) async function run () {