Skip to content

Commit 13271e0

Browse files
total bootstrap time change
1 parent 543f853 commit 13271e0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

site/static/compare.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ <h3>Cache states</h3>
114114
if (pct != null && pct != Infinity && pct != -Infinity) {
115115
let klass = "";
116116
if (pct > 1) {
117-
klass = 'span class="positive"';
117+
klass = 'class="positive"';
118118
} else if (pct < -1) {
119-
klass = 'span class="negative"';
119+
klass = 'class="negative"';
120120
}
121121
let title = "";
122122
let marker = "";
@@ -375,6 +375,18 @@ <h3>Cache states</h3>
375375
html += "<tr data-field-start=true><td>&nbsp;</td></tr>";
376376
html += "<tr data-field-start=true><td colspan=4>bootstrap timings; variance is 1-3% on smaller benchmarks! Values in seconds.</td></tr>";
377377
is_first_bootstrap = false;
378+
379+
let dodgy = dodgy_name_title("Total");
380+
html += "<tr data-field-start=true>";
381+
html += `<th style="width: ${max_name_width/2}em;" data-js-name=Total>` + truncate_name("total") + "</th>";
382+
let sum = (acc, value) => acc + value;
383+
let a_total = fields.filter(f => f.is_bootstrap).map(f => f.fields[0].datum_a).reduce(sum);
384+
let b_total = fields.filter(f => f.is_bootstrap).map(f => f.fields[0].datum_b).reduce(sum);
385+
html += add_datum_fields(a_total, data.a.commit, "Total", "", false);
386+
html += add_datum_fields(b_total, data.b.commit, "Total", "", false);
387+
let pct = add_percent(percent_chg(a_total, b_total), dodgy, "??");
388+
html += `<td>${pct}</td>`;
389+
html += "</tr>";
378390
}
379391
let dodgy = dodgy_name_title(field.name);
380392
html += "<tr data-field-start=true>";

0 commit comments

Comments
 (0)