Skip to content

Commit

Permalink
fix(benchmarks): add upper/lower values to BMF throughput
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Oct 2, 2024
1 parent c352783 commit d5ccee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchmarks/benchmarks-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,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: {
Expand All @@ -236,6 +238,8 @@ export const convertTatamiNgToBmf = (report) => {
},
throughput: {
value: stats?.iters,
lower_value: stats?.iters - throughputSd,
upper_value: stats?.iters + throughputSd,
},
},
}
Expand Down

0 comments on commit d5ccee0

Please sign in to comment.