mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 14:56:17 -04:00
feat(benchmark-builder): compute gap and export to bulet list
This commit is contained in:
parent
4a1afb2b69
commit
4d011f15a1
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue