refactor: default benchmark to factorial
[poolifier.git] / benchmarks / internal / thread-worker.mjs
index 63d6e2defe91085e852e8786d4dac25b926c2422..e7c58f70cf336dfed2e4e167d925b089bd3d4f91 100644 (file)
@@ -6,7 +6,7 @@ import { executeTaskFunction } from '../benchmarks-utils.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 &&