From d6e6b6414d53a81d81eeae068eb87d6eaf707038 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 2 Oct 2024 18:07:13 +0200 Subject: [PATCH] fix(benchmarks): add upper/lower values to BMF throughput MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- benchmarks/benchmarks-utils.mjs | 4 ++++ 1 file changed, 4 insertions(+) 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, }, }, -- 2.34.1