From: Jérôme Benoit Date: Wed, 2 Oct 2024 16:07:13 +0000 (+0200) Subject: fix(benchmarks): add upper/lower values to BMF throughput X-Git-Tag: v4.3.0~22 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d6e6b6414d53a81d81eeae068eb87d6eaf707038;p=poolifier.git fix(benchmarks): add upper/lower values to BMF throughput Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index 6c3d0d82..8ba93ae7 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -141,6 +141,8 @@ export const runPoolifierBenchmarkTatamiNg = async ( export const convertTatamiNgToBmf = report => { return report.benchmarks .map(({ name, stats }) => { + // https://en.wikipedia.org/wiki/Propagation_of_uncertainty#Example_formulae + const throughputSd = (1e9 * stats?.sd) / stats?.avg ** 2 return { [name]: { latency: { @@ -149,6 +151,8 @@ export const convertTatamiNgToBmf = report => { value: stats?.avg, }, throughput: { + lower_value: stats?.iters - throughputSd, + upper_value: stats?.iters + throughputSd, value: stats?.iters, }, },