@@ -394,11 +394,11 @@ class Driver {
394
394
let text = "" ;
395
395
let newBenchmarks = [ ] ;
396
396
for ( const benchmark of this . benchmarks ) {
397
- const id = JSON . stringify ( benchmark . constructor . scoreDescription ( ) ) ;
398
- const description = JSON . parse ( id ) ;
397
+ const description = Object . keys ( benchmark . subScores ( ) ) ;
398
+ description . push ( "Score" ) ;
399
399
400
400
newBenchmarks . push ( benchmark ) ;
401
- const scoreIds = benchmark . scoreIdentifiers ( )
401
+ const scoreIds = benchmark . scoreIdentifiers ( ) ;
402
402
const overallScoreId = scoreIds . pop ( ) ;
403
403
404
404
if ( isInBrowser ) {
@@ -1005,7 +1005,6 @@ class Benchmark {
1005
1005
return this . _resourcesPromise ;
1006
1006
}
1007
1007
1008
- static scoreDescription ( ) { throw new Error ( "Must be implemented by subclasses." ) ; }
1009
1008
scoreIdentifiers ( ) { throw new Error ( "Must be implemented by subclasses" ) ; }
1010
1009
1011
1010
updateUIBeforeRun ( ) {
@@ -1088,10 +1087,6 @@ class DefaultBenchmark extends Benchmark {
1088
1087
} ;
1089
1088
}
1090
1089
1091
- static scoreDescription ( ) {
1092
- return [ "First" , "Worst" , "Average" , "Score" ] ;
1093
- }
1094
-
1095
1090
scoreIdentifiers ( ) {
1096
1091
return [ firstID ( this ) , worst4ID ( this ) , avgID ( this ) , scoreID ( this ) ] ;
1097
1092
}
@@ -1310,10 +1305,6 @@ class WSLBenchmark extends Benchmark {
1310
1305
} ;
1311
1306
}
1312
1307
1313
- static scoreDescription ( ) {
1314
- return [ "Stdlib" , "MainRun" , "Score" ] ;
1315
- }
1316
-
1317
1308
scoreIdentifiers ( ) {
1318
1309
return [ "wsl-stdlib-score" , "wsl-tests-score" , "wsl-score-score" ] ;
1319
1310
}
@@ -1486,10 +1477,6 @@ class WasmLegacyBenchmark extends Benchmark {
1486
1477
} ;
1487
1478
}
1488
1479
1489
- static scoreDescription ( ) {
1490
- return [ "Startup" , "Runtime" , "Score" ] ;
1491
- }
1492
-
1493
1480
get startupID ( ) {
1494
1481
return `wasm-startup-id${ this . name } ` ;
1495
1482
}
0 commit comments