@@ -188,6 +188,7 @@ export class ResultTableData {
188
188
// benchmarksMEM: Array<Benchmark>;
189
189
// Columns
190
190
frameworks : Array < Framework > ;
191
+ frameworksForFactors : Array < Framework > ;
191
192
selectedFameworks : Set < Framework > ;
192
193
// Cell data
193
194
// resultsCPU: Array<Array<TableResultValueEntry|null>>; // [benchmark][framework]
@@ -221,9 +222,9 @@ export class ResultTableData {
221
222
}
222
223
} )
223
224
this . frameworks = this . allFrameworks . filter ( framework => framework . type === type && this . selectedFameworks . has ( framework ) ) ;
225
+ this . frameworksForFactors = this . allFrameworks . filter ( framework => framework . type === type
226
+ && framework . issues . every ( i => allowedIssues . has ( i ) ) ) ;
224
227
this . update ( sortKey ) ;
225
-
226
-
227
228
}
228
229
private update ( sortKey : string ) {
229
230
console . time ( "update" ) ;
@@ -334,7 +335,8 @@ export class ResultTableData {
334
335
}
335
336
336
337
computeFactors ( benchmark : Benchmark ) : Array < TableResultValueEntry | null > {
337
- const benchmarkResults = this . frameworks . map ( f => this . results ( benchmark , f ) ) ;
338
+ debugger ;
339
+ const benchmarkResults = this . frameworksForFactors . map ( f => this . results ( benchmark , f ) ) ;
338
340
const selectFn = ( result : Result | null ) => {
339
341
if ( result === null ) return 0 ;
340
342
if ( this . displayMode === DisplayMode . DisplayMedian ) {
@@ -343,7 +345,7 @@ export class ResultTableData {
343
345
return result . mean ;
344
346
}
345
347
}
346
- let min = Math . max ( benchmarkResults . reduce ( ( min , result ) => result === null ? min : Math . min ( min , selectFn ( result ) ) , Number . POSITIVE_INFINITY ) ) ;
348
+ const min = Math . max ( benchmarkResults . reduce ( ( min , result ) => result === null ? min : Math . min ( min , selectFn ( result ) ) , Number . POSITIVE_INFINITY ) ) ;
347
349
// if (benchmark.type === BenchmarkType.CPU) {
348
350
// min = Math.max(1000/60, min);
349
351
// }
@@ -352,7 +354,7 @@ export class ResultTableData {
352
354
if ( result === null ) return null ;
353
355
354
356
const value = selectFn ( result ) ;
355
- let factor = value / min ;
357
+ const factor = value / min ;
356
358
// if (benchmark.type === BenchmarkType.CPU) {
357
359
// factor = Math.max(1, factor);
358
360
// }
0 commit comments