refactor: default benchmark to factorial
[poolifier.git] / benchmarks / internal / cluster-worker.cjs
index 94980725624e9897db66b55b0fda6a3392776b38..5f59d49b8971cd4d692fe3e01a4599ba13a03d66 100644 (file)
@@ -5,7 +5,7 @@ const { TaskFunctions } = require('../benchmarks-types.cjs')
 
 const taskFunction = data => {
   data = data || {}
-  data.function = data.function || TaskFunctions.jsonIntegerSerialization
+  data.function = data.function || TaskFunctions.factorial
   data.debug = data.debug || false
   const res = executeTaskFunction(data)
   data.debug === true && console.debug(`This is the main thread ${isPrimary}`)