Skip to content

Collection of handy online tools for developers, with great UX.

feat(benchmark-builder): compute gap and export to bulet list

Corentin Thomasset4d011f15a157
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,
};
});
});