Skip to content

Commit b487730

Browse files
authored
Rename worst4 to just worst (WebKit#129)
"worst4" is a misleading name since the worstCount is configurable per workload.
1 parent 512b065 commit b487730

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

JetStreamDriver.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,8 +1139,8 @@ class DefaultBenchmark extends Benchmark {
11391139
this.worstCaseCount = getWorstCaseCount(this.plan);
11401140
this.firstIterationTime = null;
11411141
this.firstIterationScore = null;
1142-
this.worst4Time = null;
1143-
this.worst4Score = null;
1142+
this.worstTime = null;
1143+
this.worstScore = null;
11441144
this.averageTime = null;
11451145
this.averageScore = null;
11461146

@@ -1161,16 +1161,16 @@ class DefaultBenchmark extends Benchmark {
11611161
const worstCase = [];
11621162
for (let i = 0; i < this.worstCaseCount; ++i)
11631163
worstCase.push(results[i]);
1164-
this.worst4Time = mean(worstCase);
1165-
this.worst4Score = toScore(this.worst4Time);
1164+
this.worstTime = mean(worstCase);
1165+
this.worstScore = toScore(this.worstTime);
11661166
this.averageTime = mean(results);
11671167
this.averageScore = toScore(this.averageTime);
11681168
}
11691169

11701170
subScores() {
11711171
return {
11721172
"First": this.firstIterationScore,
1173-
"Worst": this.worst4Score,
1173+
"Worst": this.worstScore,
11741174
"Average": this.averageScore,
11751175
};
11761176
}

0 commit comments

Comments
 (0)