Skip to content

Commit 7dd6095

Browse files
committed
Site: Adjust graphs page axis labels
Distinguish CPU/Wall time, show max-rss unit as kB instead of kb, instructions, cycles and faults as count, clarify "baseline" to mean "first"
1 parent 080abd3 commit 7dd6095

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

site/static/index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,26 +326,29 @@ <h3>This may take a while!</h3>
326326
let yAxis = "Value";
327327
let yAxisUnit = null;
328328
if (state.stat == "instructions:u") {
329-
yAxis = "Number of CPU instructions";
329+
yAxis = "CPU instructions";
330+
yAxisUnit = "count";
330331
} else if (state.stat == "cycles:u") {
331-
yAxis = "Number of CPU cycles";
332+
yAxis = "CPU cycles";
333+
yAxisUnit = "count";
332334
} else if (state.stat == "cpu-clock") {
333-
yAxis = "Wall time execution";
335+
yAxis = "CPU time";
334336
yAxisUnit = "seconds";
335337
} else if (state.stat == "wall-time") {
336-
yAxis = "Wall time execution";
338+
yAxis = "Wall time";
337339
yAxisUnit = "seconds";
338340
} else if (state.stat == "max-rss") {
339341
yAxis = "Maximum resident set size";
340-
yAxisUnit = "kb";
342+
yAxisUnit = "kB";
341343
} else if (state.stat == "faults") {
342344
yAxis = "Faults";
345+
yAxisUnit = "count";
343346
}
344347

345348
if (state.kind == "raw" && benchName == "Summary") {
346349
yAxisUnit = "relative";
347350
} else if (state.kind == "percentfromfirst") {
348-
yAxisUnit = "% change from baseline";
351+
yAxisUnit = "% change from first";
349352
} else if (state.kind == "percentrelative") {
350353
yAxisUnit = "% change from previous";
351354
}

0 commit comments

Comments
 (0)