Skip to content

Commit 551bf12

Browse files
committed
Compare site: add tooltip to benchmark summary
1 parent 900e589 commit 551bf12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

site/static/compare.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,15 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
406406
<p v-if="dataLoading && !data">Loading ...</p>
407407
<div v-if="data" id="content" style="margin-top: 15px">
408408
<div id="summary">
409+
<div style="display: flex; justify-content: end;">
410+
<span class="tooltip" style="margin-right: 1em;">?
411+
<span class="tooltiptext">
412+
The percents show arithmetic mean amongst regressions, amongst improvements
413+
and finally amongst all benchmarks in each category (all benchmarks or
414+
filtered benchmarks).
415+
</span>
416+
</span>
417+
</div>
409418
<div v-for="summaryPair in Object.entries(summary)" style="display: flex;">
410419
<span style="font-weight: bold; width: 30%; margin-left: 15%; text-transform: capitalize;">{{
411420
summaryPair[0] }}:</span>

0 commit comments

Comments
 (0)