Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,11 @@ <h2>Detailed Comparison</h2>
[...Array(3).keys()].map(run_num =>
Math.min(...filtered_data.filter(elem => !elem.fake).map(elem => elem.result[query_num]?.[run_num]).filter(x => x != null))));

const min_load_time = Math.min(...filtered_data.map(elem => elem.load_time).filter(x => x && x > 5));
const min_data_size = Math.min(...filtered_data.map(elem => elem.data_size).filter(x => x && x > 1e9));
/// The thresholds have to match the conditions below, where these minimums are used as the baselines:
/// otherwise a system sitting exactly on the boundary is compared against a baseline of Infinity,
/// which makes its ratio zero, and the bar collapses to nothing.
const min_load_time = Math.min(...filtered_data.map(elem => elem.load_time).filter(x => x >= 5));
const min_data_size = Math.min(...filtered_data.map(elem => elem.data_size).filter(x => x >= 1e9));

let summaries;
if (selectors.metric == 'load') {
Expand Down
Loading