From: Jérôme Benoit Date: Fri, 29 Mar 2024 02:17:47 +0000 (+0100) Subject: refactor: default benchmark to factorial X-Git-Tag: v3.1.28~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=66566c5d2cb8f6f3f0179f6b663307923a6ce7de;p=poolifier.git refactor: default benchmark to factorial Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/internal/cluster-worker.cjs b/benchmarks/internal/cluster-worker.cjs index 94980725..5f59d49b 100644 --- a/benchmarks/internal/cluster-worker.cjs +++ b/benchmarks/internal/cluster-worker.cjs @@ -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}`) diff --git a/benchmarks/internal/thread-worker.mjs b/benchmarks/internal/thread-worker.mjs index 63d6e2de..e7c58f70 100644 --- a/benchmarks/internal/thread-worker.mjs +++ b/benchmarks/internal/thread-worker.mjs @@ -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 &&