File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
site/frontend/src/pages/compare/compile Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export interface BenchmarkProps {
16
16
benchmarkMap: CompileBenchmarkMap ;
17
17
filter: CompileBenchmarkFilter ;
18
18
stat: string ;
19
+ showBackend: boolean ;
19
20
}
20
21
21
22
const props = defineProps <BenchmarkProps >();
@@ -77,6 +78,7 @@ const secondaryHasNonRelevant = computed(
77
78
:commit-b =" data.b"
78
79
:stat =" stat"
79
80
:benchmark-map =" benchmarkMap"
81
+ :show-backend =" showBackend"
80
82
>
81
83
<template #header >
82
84
<Section title =" Primary" link =" secondary" :linkUp =" false" ></Section >
@@ -92,6 +94,7 @@ const secondaryHasNonRelevant = computed(
92
94
:commit-b =" data.b"
93
95
:stat =" stat"
94
96
:benchmark-map =" benchmarkMap"
97
+ :show-backend =" showBackend"
95
98
>
96
99
<template #header >
97
100
<Section title =" Secondary" link =" primary" :linkUp =" true" ></Section >
Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ const filteredSummary = computed(() => computeSummary(comparisons.value));
260
260
:filter =" filter"
261
261
:stat =" selector.stat"
262
262
:benchmark-map =" benchmarkMap"
263
+ :show-backend =" !selfCompareBackend"
263
264
></Benchmarks >
264
265
</template >
265
266
<style lang="scss" scoped>
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const props = defineProps<{
18
18
commitA: ArtifactDescription ;
19
19
commitB: ArtifactDescription ;
20
20
stat: string ;
21
+ showBackend: boolean ;
21
22
}>();
22
23
23
24
function prettifyRawNumber(number : number ): string {
@@ -56,7 +57,7 @@ const unit = computed(() => {
56
57
<th >Benchmark</th >
57
58
<th >Profile</th >
58
59
<th >Scenario</th >
59
- <th >Backend</th >
60
+ <th v-if = " showBackend " >Backend</th >
60
61
<th >% Change</th >
61
62
<th class =" narrow" >
62
63
Significance Threshold
@@ -95,7 +96,7 @@ const unit = computed(() => {
95
96
{{ comparison.testCase.profile }}
96
97
</td >
97
98
<td >{{ comparison.testCase.scenario }}</td >
98
- <td >{{ comparison.testCase.backend }}</td >
99
+ <td v-if = " showBackend " >{{ comparison.testCase.backend }}</td >
99
100
<td >
100
101
<div class =" numeric-aligned" >
101
102
<span v-bind:class =" percentClass(comparison.percent)" >
You can’t perform that action at this time.
0 commit comments