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 8, 2024
1 parent ffcd337 commit 33223fe
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 @@ -993,7 +993,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 33223fe

Please sign in to comment.