From 66566c5d2cb8f6f3f0179f6b663307923a6ce7de Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 29 Mar 2024 03:17:47 +0100 Subject: [PATCH] refactor: default benchmark to factorial MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- benchmarks/internal/cluster-worker.cjs | 2 +- benchmarks/internal/thread-worker.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 && -- 2.34.1