From: Jérôme Benoit Date: Wed, 2 Oct 2024 08:57:44 +0000 (+0200) Subject: fix: fix benchmarks report conversion to BMF format X-Git-Tag: v4.3.0~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8a93e4eeb91c673d68a858126b090e8613a950d5;p=poolifier.git fix: fix benchmarks report conversion to BMF format Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index a45d953e..457e197a 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -149,7 +149,15 @@ export const convertTatamiNgToBmf = report => { value: stats?.avg, }, throughput: { - value: stats?.iter, + value: stats?.iters, + ...(typeof stats?.max === 'number' && + stats.max > 0 && { + lower_value: 1e9 / stats.max, + }), + ...(typeof stats?.min === 'number' && + stats.min > 0 && { + upper_value: 1e9 / stats.min, + }), }, }, }