X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fcluster-worker.mjs;h=1d64fde30a19d82f0e4f52cb1781a7eab9efeae6;hb=e45f940434b881099d6d197fa73258f2763acee3;hp=69a7ad15cae0ada671f3e4f8ef1261305d26e51a;hpb=624e51e36eb773aa325fa03df96bce20761ab65b;p=poolifier.git diff --git a/benchmarks/internal/cluster-worker.mjs b/benchmarks/internal/cluster-worker.mjs index 69a7ad15..1d64fde3 100644 --- a/benchmarks/internal/cluster-worker.mjs +++ b/benchmarks/internal/cluster-worker.mjs @@ -3,13 +3,12 @@ import { ClusterWorker } from '../../lib/index.mjs' import { executeTaskFunction } from '../benchmarks-utils.mjs' import { TaskFunctions } from '../benchmarks-types.mjs' -const debug = false - const taskFunction = data => { data = data || {} data.function = data.function || TaskFunctions.jsonIntegerSerialization + data.debug = data.debug || false const res = executeTaskFunction(data) - debug === true && console.debug(`This is the main thread ${isPrimary}`) + data.debug === true && console.debug(`This is the main thread ${isPrimary}`) return res }