X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fthread-worker.mjs;h=94250a3abae973fa06f62d09ca904ddd0ac97a19;hb=041dc05b2a95b36db72525072ba54c4c58ffcf0e;hp=855ba62225e50513a1375eb84806a4c077cf61e2;hpb=8ad621cc1d32ed396fca3ef2ec48337e42d2dcc2;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 }