X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fthread-worker.mjs;h=94250a3abae973fa06f62d09ca904ddd0ac97a19;hb=e8dfbdc023db3a09c31d96dd9c04f7163b557c15;hp=855ba62225e50513a1375eb84806a4c077cf61e2;hpb=de2e7182cca6b34b000a09bf6d0ddcff4757db3a;p=poolifier.git diff --git a/benchmarks/internal/thread-worker.mjs b/benchmarks/internal/thread-worker.mjs index 855ba622..94250a3a 100644 --- a/benchmarks/internal/thread-worker.mjs +++ b/benchmarks/internal/thread-worker.mjs @@ -5,11 +5,11 @@ import { TaskFunctions } from '../benchmarks-types.mjs' const debug = false -const taskFunction = (data) => { +const taskFunction = data => { data = data || {} data.function = data.function || TaskFunctions.jsonIntegerSerialization const res = executeTaskFunction(data) - debug === true && console.debug('This is the main thread ' + isMainThread) + debug === true && console.debug(`This is the main thread ${isMainThread}`) return res }