Skip to content

Commit

Permalink
print three decimal places for query runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
toschmidt committed Feb 5, 2024
1 parent 732fada commit 71f5a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ <h2>Detailed Comparison</h2>
const ratio = curr_timing !== null ? (constant_time_add + curr_timing) / (constant_time_add + baseline_timing) : null;

let td = document.createElement('td');
td.appendChild(document.createTextNode(curr_timing !== null ? `${curr_timing.toFixed(2)}s (×${ratio.toFixed(2)})` : '☠'));
td.appendChild(document.createTextNode(curr_timing !== null ? `${curr_timing.toFixed(3)}s (×${ratio.toFixed(2)})` : '☠'));

colorize(td, ratio);
tr.appendChild(td);
Expand Down

0 comments on commit 71f5a2f

Please sign in to comment.