From 6cb3131a66e7561791364f4f7c75b5c4913a9bed Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Tue, 23 Jul 2024 21:55:30 +0200 Subject: [PATCH] Update bench.js --- scripts/ci/bench.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/bench.js b/scripts/ci/bench.js index 71f17bff4..3539a080c 100644 --- a/scripts/ci/bench.js +++ b/scripts/ci/bench.js @@ -204,7 +204,7 @@ async function main() { const opsPerSec = allTimes.map(times => times.length / times.reduce((a, b) => a + b, 0)); const { mean, errorMargin, bestValue } = calculateConfidenceInterval(opsPerSec); - console.log(`Ops: ${mean} ± ${errorMargin} ops/s. Best: ${bestValue} ops/s`); + console.log(`Ops: ${mean.toFixed(1)} ± ${errorMargin.toFixed(1} ops/s. Best: ${bestValue.toFixed(1)} ops/s`); }