diff options
author | 2023-04-06 13:33:51 +0200 | |
---|---|---|
committer | 2023-04-06 14:00:54 +0200 | |
commit | 4d011f15a157da76ca38fe47188516ee9d8b690e (patch) | |
tree | 9cb376ed5e630f6a998fcbe15518d2a328913347 /src | |
parent | 4a1afb2b694921b59471328550aedf68cbf37de7 (diff) | |
download | it-tools-4d011f15a157da76ca38fe47188516ee9d8b690e.tar.gz it-tools-4d011f15a157da76ca38fe47188516ee9d8b690e.tar.zst it-tools-4d011f15a157da76ca38fe47188516ee9d8b690e.zip |
feat(benchmark-builder): compute gap and export to bulet list
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/benchmark-builder/benchmark-builder.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/benchmark-builder/benchmark-builder.vue b/src/tools/benchmark-builder/benchmark-builder.vue index f842cfb..f11a9dc 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, }; }); }); |