diff --git a/site/src/github.rs b/site/src/github.rs index bab6e5f6e..9cc0346cf 100644 --- a/site/src/github.rs +++ b/site/src/github.rs @@ -713,11 +713,13 @@ async fn categorize_benchmark( ); write!(result, "\n\n").unwrap(); - let (primary, secondary) = ( - primary.unwrap_or_else(|| ComparisonSummary::empty()), - secondary.unwrap_or_else(|| ComparisonSummary::empty()), - ); - write_summary_table(&primary, &secondary, &mut result); + if primary_direction.is_some() || secondary_direction.is_some() { + let (primary, secondary) = ( + primary.unwrap_or_else(|| ComparisonSummary::empty()), + secondary.unwrap_or_else(|| ComparisonSummary::empty()), + ); + write_summary_table(&primary, &secondary, &mut result); + } write!(result, "\n{}", DISAGREEMENT).unwrap();