X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fcluster-worker.cjs;h=40d614c7364fe17feaa41bec8c3742842f450832;hb=a1b4a65143c0253b57fee18affd88a554122e955;hp=94980725624e9897db66b55b0fda6a3392776b38;hpb=d35e571704515a8b729d3455e4784054f07c368f;p=poolifier.git diff --git a/benchmarks/internal/cluster-worker.cjs b/benchmarks/internal/cluster-worker.cjs index 94980725..40d614c7 100644 --- a/benchmarks/internal/cluster-worker.cjs +++ b/benchmarks/internal/cluster-worker.cjs @@ -5,9 +5,10 @@ const { TaskFunctions } = require('../benchmarks-types.cjs') const taskFunction = data => { data = data || {} - data.function = data.function || TaskFunctions.jsonIntegerSerialization + data.function = data.function || TaskFunctions.factorial data.debug = data.debug || false const res = executeTaskFunction(data) + // eslint-disable-next-line @typescript-eslint/no-unused-expressions data.debug === true && console.debug(`This is the main thread ${isPrimary}`) return res }