fix(benchmarks): fix BMF report upper/lower values
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 2 Oct 2024 10:09:54 +0000 (12:09 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 2 Oct 2024 10:09:54 +0000 (12:09 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
benchmarks/benchmarks-utils.mjs

index 457e197a634b46f50599841ad6b52775707ed83f..6c3d0d820dadb5abb4ab58737d44afeb5959f8f0 100644 (file)
@@ -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,
-            }),
           },
         },
       }