File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ class Driver {
467
467
}
468
468
469
469
async initialize ( ) {
470
- window . addEventListener ( "error" , ( e ) => this . pushError ( benchmark , e . error ) ) ;
470
+ window . addEventListener ( "error" , ( e ) => this . pushError ( "driver startup" , e . error ) ) ;
471
471
await this . prefetchResourcesForBrowser ( ) ;
472
472
await this . fetchResources ( ) ;
473
473
this . prepareToRun ( ) ;
@@ -551,20 +551,14 @@ class Driver {
551
551
552
552
resultsObjectOld ( )
553
553
{
554
- let testResults = { } ;
554
+ let results = { } ;
555
555
for ( const benchmark of this . benchmarks ) {
556
556
const subResults = { }
557
557
const subScores = benchmark . subScores ( ) ;
558
558
for ( const name in subScores ) {
559
- subResults [ name ] = {
560
- "metrics" : {
561
- "Time" : {
562
- "current" : [ toTimeValue ( subScores [ name ] ) ]
563
- }
564
- }
565
- } ;
559
+ subResults [ name ] = { "metrics" : { "Time" : { "current" : [ toTimeValue ( subScores [ name ] ) ] } } } ;
566
560
}
567
- testResults [ benchmark . name ] = {
561
+ results [ benchmark . name ] = {
568
562
"metrics" : {
569
563
"Score" : { "current" : [ benchmark . score ] } ,
570
564
"Time" : [ "Geometric" ] ,
@@ -573,14 +567,7 @@ class Driver {
573
567
} ;
574
568
}
575
569
576
- const results = {
577
- "JetStream3.0" : {
578
- "metrics" : {
579
- "Score" : [ "Geometric" ]
580
- } ,
581
- "tests" : testResults
582
- }
583
- } ;
570
+ results = { "JetStream3.0" : { "metrics" : { "Score" : [ "Geometric" ] } , "tests" : results } } ;
584
571
return results ;
585
572
}
586
573
You can’t perform that action at this time.
0 commit comments