Skip to content

Commit ec5ff60

Browse files
committed
cleanup
1 parent d86cdeb commit ec5ff60

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎JetStreamDriver.js‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,8 +1129,7 @@ class Benchmark {
11291129
updateCounter() {
11301130
const counter = JetStream.counter;
11311131
++counter.loadedResources;
1132-
const statusElement = document.getElementById("status");
1133-
statusElement.innerHTML = `Loading ${counter.loadedResources} of ${counter.totalResources} ...`;
1132+
JetStream.updateCounterUI();
11341133
}
11351134

11361135
prefetchResourcesForBrowser(counter) {
@@ -1322,8 +1321,8 @@ class Benchmark {
13221321
for (let i = 0; i < scores.length; i++) {
13231322
const result = scores[i];
13241323
const cx = padding + i * xRatio;
1325-
const cy = padding + (result - minResult) * yRatio;
1326-
const title = `Iteration ${i + 1}: ${uiFriendlyDuration(result)}`;
1324+
const cy = height - padding - (result - minResult) * yRatio;
1325+
const title = `Iteration ${i + 1}: ${uiFriendlyScore(result)} (${uiFriendlyDuration(this.results[i])})`;
13271326
circlesSVG += `<circle cx="${cx}" cy="${cy}" r="${radius}"><title>${title}</title></circle>`;
13281327
}
13291328
plotContainer.innerHTML = `<svg width="${width}px" height="${height}px">${circlesSVG}</svg>`;

0 commit comments

Comments
 (0)