File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
torchci/components/benchmark/llms Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,27 @@ export function SummaryPanel({
202
202
} ) ;
203
203
}
204
204
205
+ if ( benchmarkName === "TorchCache Benchmark" ) {
206
+ // We want to set a custom order for cache benchmark
207
+ const priorityOrder = [
208
+ "Cold compile time (s)" ,
209
+ "Warm compile time (s)" ,
210
+ "Speedup (%)" ,
211
+ ] ;
212
+ metricNames . sort ( ( x , y ) => {
213
+ const indexX = priorityOrder . indexOf ( x ) ;
214
+ const indexY = priorityOrder . indexOf ( y ) ;
215
+
216
+ if ( indexX !== - 1 && indexY !== - 1 ) {
217
+ return indexX - indexY ; // Keep the priority order
218
+ }
219
+ if ( indexX !== - 1 ) return - 1 ; // Move priority items to the front
220
+ if ( indexY !== - 1 ) return 1 ;
221
+
222
+ return 0 ; // Keep original order for non-priority items
223
+ } ) ;
224
+ }
225
+
205
226
columns . push (
206
227
...[
207
228
{
You can’t perform that action at this time.
0 commit comments