diff --git a/index.html b/index.html index e8361c254f..2546b0f7d1 100644 --- a/index.html +++ b/index.html @@ -964,8 +964,11 @@

Detailed Comparison

[...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') {