From 4d011f15a157da76ca38fe47188516ee9d8b690e Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Thu, 6 Apr 2023 13:33:51 +0200 Subject: [PATCH] feat(benchmark-builder): compute gap and export to bulet list --- src/tools/benchmark-builder/benchmark-builder.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/benchmark-builder/benchmark-builder.vue b/src/tools/benchmark-builder/benchmark-builder.vue index f842cfb4..f11a9dc6 100644 --- a/src/tools/benchmark-builder/benchmark-builder.vue +++ b/src/tools/benchmark-builder/benchmark-builder.vue @@ -110,7 +110,7 @@ const results = computed(() => { }; }) .sort((a, b) => a.mean - b.mean) - .map(({ mean, variance, ...value }, index, suites) => { + .map(({ mean, variance, size, title }, index, suites) => { const cleanUnit = unit.value.trim(); const bestMean: number = suites[0].mean; const deltaWithBestMean = mean - bestMean; @@ -121,9 +121,10 @@ const results = computed(() => { return { position: index + 1, + title, mean: `${round(mean)}${cleanUnit}${comparisonValues}`, variance: `${round(variance)}${cleanUnit}${cleanUnit ? '²' : ''}`, - ...value, + size, }; }); });