@@ -4,6 +4,7 @@ import Tooltip from "../tooltip.vue";
4
4
import {ArtifactDescription } from " ../types" ;
5
5
import {percentClass } from " ../shared" ;
6
6
import {CompileBenchmarkMap , CompileTestCase } from " ./common" ;
7
+ import {computed } from " vue" ;
7
8
8
9
const props = defineProps <{
9
10
id: string ;
@@ -92,6 +93,16 @@ Category: ${metadata.category}
92
93
93
94
return tooltip ;
94
95
}
96
+
97
+ const unit = computed (() => {
98
+ // The DB stored wall-time data in seconds for compile benchmarks, so it is
99
+ // hardcoded here
100
+ if (props .stat == " wall-time" ) {
101
+ return " s" ;
102
+ } else {
103
+ return null ;
104
+ }
105
+ });
95
106
</script >
96
107
97
108
<template >
@@ -194,16 +205,16 @@ Category: ${metadata.category}
194
205
</td >
195
206
<td v-if =" showRawData" class =" numeric" >
196
207
<a v-bind:href =" detailedQueryRawDataLink(commitA, comparison)" >
197
- <abbr :title =" comparison.datumA.toString()" >{{
198
- prettifyRawNumber(comparison.datumA)
199
- }}</ abbr >
208
+ <abbr :title =" comparison.datumA.toString()"
209
+ >{{ prettifyRawNumber(comparison.datumA) }}{{ unit }}</ abbr
210
+ >
200
211
</a >
201
212
</td >
202
213
<td v-if =" showRawData" class =" numeric" >
203
214
<a v-bind:href =" detailedQueryRawDataLink(commitB, comparison)" >
204
- <abbr :title =" comparison.datumB.toString()" >{{
205
- prettifyRawNumber(comparison.datumB)
206
- }}</ abbr >
215
+ <abbr :title =" comparison.datumB.toString()"
216
+ >{{ prettifyRawNumber(comparison.datumB) }}{{ unit }}</ abbr
217
+ >
207
218
</a >
208
219
</td >
209
220
</tr >
0 commit comments