We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3fdd61 + a3675d5 commit 36ad349Copy full SHA for 36ad349
index.html
@@ -681,7 +681,7 @@ <h2>Detailed Comparison</h2>
681
const hot_timing = (timings[1] !== null && timings[2] !== null ? Math.min(timings[1], timings[2]) : null);
682
683
return metric == 'cold' ? cold_timing : metric == 'hot' ? hot_timing :
684
- ((hot_timing * combined_hot_share + cold_timing * combined_cold_share) / (combined_hot_share + combined_cold_share));
+ (hot_timing !== null && cold_timing !== null ? (hot_timing * combined_hot_share + cold_timing * combined_cold_share) / (combined_hot_share + combined_cold_share) : null);
685
}
686
687
function relativeQueryTime(num_queries, baseline_data, elem, metric) {
0 commit comments