From: Jérôme Benoit Date: Wed, 2 Oct 2024 10:09:54 +0000 (+0200) Subject: fix(benchmarks): fix BMF report upper/lower values X-Git-Tag: v4.3.0~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0a98c64c82e0102042da0eaebf8fed78691261a1;p=poolifier.git fix(benchmarks): fix BMF report upper/lower values Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index 457e197a..6c3d0d82 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -144,20 +144,12 @@ export const convertTatamiNgToBmf = report => { return { [name]: { latency: { - lower_value: stats?.min, - upper_value: stats?.max, + lower_value: stats?.avg - stats?.sd, + upper_value: stats?.avg + stats?.sd, value: stats?.avg, }, throughput: { 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, - }), }, }, }