docs: update benchmarks vs. external pools
[poolifier.git] / benchmarks / internal / thread-worker.mjs
index e56eaa4cbcbb7cb0844439d3efd489278be15755..f88cf076268cbff5f600a44eebc9bad7c64b0687 100644 (file)
@@ -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
 }