X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fthread-worker.mjs;h=f88cf076268cbff5f600a44eebc9bad7c64b0687;hb=8ea47589a8f04b7018bd39c230d68de456c27bb0;hp=e56eaa4cbcbb7cb0844439d3efd489278be15755;hpb=dbca3be954130834defeb4084096272ecf660c5c;p=poolifier.git diff --git a/benchmarks/internal/thread-worker.mjs b/benchmarks/internal/thread-worker.mjs index e56eaa4c..f88cf076 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 -function 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 }