From: Jérôme Benoit Date: Fri, 29 Mar 2024 00:13:50 +0000 (+0100) Subject: fix: fix internal benchmark for cluster pool X-Git-Tag: v3.1.28~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d83e2353f20856cf04758d27d1a458974dccaf12;p=poolifier.git fix: fix internal benchmark for cluster pool Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/benchmarks-utils.cjs b/benchmarks/benchmarks-utils.cjs index c2de0d5e..f5f41be9 100644 --- a/benchmarks/benchmarks-utils.cjs +++ b/benchmarks/benchmarks-utils.cjs @@ -209,7 +209,8 @@ const fibonacci = n => { current += previous previous = tmp } - return current + // cluster worker do not support BigInt + return current.toString() } /** @@ -225,7 +226,8 @@ const factorial = n => { for (let i = 1n; i <= n; i++) { factorial *= i } - return factorial + // cluster worker do not support BigInt + return factorial.toString() } }