Skip to content

Commit d1c46f2

Browse files
committed
cleanup
1 parent a55964e commit d1c46f2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

JetStreamDriver.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ class Driver {
467467
// If we've failed to prefetch resources even after a sequential 1 by 1 retry,
468468
// then fail out early rather than letting subtests fail with a hang.
469469
window.allIsGood = false;
470-
throw new Error("Fetch failed");
470+
throw new Error("Fetch failed");
471471
}
472472
}
473473

@@ -556,7 +556,6 @@ class Benchmark {
556556
{
557557
this.plan = plan;
558558
this.iterations = getIterationCount(plan);
559-
console.log({name:this.name, iterations:this.iterations})
560559
this.isAsync = !!plan.isAsync;
561560

562561
this.scripts = null;
@@ -835,7 +834,7 @@ class Benchmark {
835834

836835
if (!blobData.blob) {
837836
window.allIsGood = false;
838-
throw new Error("Fetch failed");
837+
throw new Error("Fetch failed");
839838
}
840839

841840
return !counter.failedPreloadResources && counter.loadedResources == counter.totalResources;
@@ -889,10 +888,11 @@ class Benchmark {
889888
scoreIdentifiers() { throw new Error("Must be implemented by subclasses"); }
890889

891890
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}:`);
895894
return;
895+
}
896896

897897
let containerUI = document.getElementById("results");
898898
let resultsBenchmarkUI = document.getElementById(`benchmark-${this.name}`);
@@ -977,6 +977,7 @@ class DefaultBenchmark extends Benchmark {
977977
document.getElementById(worst4ID(this)).innerHTML = uiFriendlyNumber(this.worst4);
978978
document.getElementById(avgID(this)).innerHTML = uiFriendlyNumber(this.average);
979979
document.getElementById(scoreID(this)).innerHTML = uiFriendlyNumber(this.score);
980+
return;
980981
}
981982

982983
if (dumpJSONResults)
@@ -1074,6 +1075,7 @@ class WSLBenchmark extends Benchmark {
10741075
document.getElementById("wsl-stdlib-score").innerHTML = uiFriendlyNumber(this.stdlib);
10751076
document.getElementById("wsl-tests-score").innerHTML = uiFriendlyNumber(this.mainRun);
10761077
document.getElementById("wsl-score-score").innerHTML = uiFriendlyNumber(this.score);
1078+
return;
10771079
}
10781080

10791081
if (dumpJSONResults)
@@ -1254,6 +1256,7 @@ class WasmBenchmark extends Benchmark {
12541256
document.getElementById(this.startupID).innerHTML = uiFriendlyNumber(this.startupTime);
12551257
document.getElementById(this.runID).innerHTML = uiFriendlyNumber(this.runTime);
12561258
document.getElementById(this.scoreID).innerHTML = uiFriendlyNumber(this.score);
1259+
return;
12571260
}
12581261

12591262
if (dumpJSONResults)

0 commit comments

Comments
 (0)