@@ -467,7 +467,7 @@ class Driver {
467
467
// If we've failed to prefetch resources even after a sequential 1 by 1 retry,
468
468
// then fail out early rather than letting subtests fail with a hang.
469
469
window . allIsGood = false ;
470
- throw new Error ( "Fetch failed" ) ;
470
+ throw new Error ( "Fetch failed" ) ;
471
471
}
472
472
}
473
473
@@ -556,7 +556,6 @@ class Benchmark {
556
556
{
557
557
this . plan = plan ;
558
558
this . iterations = getIterationCount ( plan ) ;
559
- console . log ( { name :this . name , iterations :this . iterations } )
560
559
this . isAsync = ! ! plan . isAsync ;
561
560
562
561
this . scripts = null ;
@@ -835,7 +834,7 @@ class Benchmark {
835
834
836
835
if ( ! blobData . blob ) {
837
836
window . allIsGood = false ;
838
- throw new Error ( "Fetch failed" ) ;
837
+ throw new Error ( "Fetch failed" ) ;
839
838
}
840
839
841
840
return ! counter . failedPreloadResources && counter . loadedResources == counter . totalResources ;
@@ -889,10 +888,11 @@ class Benchmark {
889
888
scoreIdentifiers ( ) { throw new Error ( "Must be implemented by subclasses" ) ; }
890
889
891
890
updateUIBeforeRun ( ) {
892
- if ( ! dumpJSONResults )
893
- console . log ( `Running ${ this . name } :` ) ;
894
- if ( ! isInBrowser )
891
+ if ( ! isInBrowser ) {
892
+ if ( ! dumpJSONResults )
893
+ console . log ( `Running ${ this . name } :` ) ;
895
894
return ;
895
+ }
896
896
897
897
let containerUI = document . getElementById ( "results" ) ;
898
898
let resultsBenchmarkUI = document . getElementById ( `benchmark-${ this . name } ` ) ;
@@ -977,6 +977,7 @@ class DefaultBenchmark extends Benchmark {
977
977
document . getElementById ( worst4ID ( this ) ) . innerHTML = uiFriendlyNumber ( this . worst4 ) ;
978
978
document . getElementById ( avgID ( this ) ) . innerHTML = uiFriendlyNumber ( this . average ) ;
979
979
document . getElementById ( scoreID ( this ) ) . innerHTML = uiFriendlyNumber ( this . score ) ;
980
+ return ;
980
981
}
981
982
982
983
if ( dumpJSONResults )
@@ -1074,6 +1075,7 @@ class WSLBenchmark extends Benchmark {
1074
1075
document . getElementById ( "wsl-stdlib-score" ) . innerHTML = uiFriendlyNumber ( this . stdlib ) ;
1075
1076
document . getElementById ( "wsl-tests-score" ) . innerHTML = uiFriendlyNumber ( this . mainRun ) ;
1076
1077
document . getElementById ( "wsl-score-score" ) . innerHTML = uiFriendlyNumber ( this . score ) ;
1078
+ return ;
1077
1079
}
1078
1080
1079
1081
if ( dumpJSONResults )
@@ -1254,6 +1256,7 @@ class WasmBenchmark extends Benchmark {
1254
1256
document . getElementById ( this . startupID ) . innerHTML = uiFriendlyNumber ( this . startupTime ) ;
1255
1257
document . getElementById ( this . runID ) . innerHTML = uiFriendlyNumber ( this . runTime ) ;
1256
1258
document . getElementById ( this . scoreID ) . innerHTML = uiFriendlyNumber ( this . score ) ;
1259
+ return ;
1257
1260
}
1258
1261
1259
1262
if ( dumpJSONResults )
0 commit comments