Skip to content

Commit d0a5a51

Browse files
larseggertCopilot
andauthored
chore: Reformat perfcompare results (mozilla#3167)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f7c629b commit d0a5a51

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/perfcompare.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ jobs:
425425
426426
# Make a single results table.
427427
{
428-
echo "Transfer of $SIZE bytes over loopback, min. $RUNS runs. All unit-less numbers are in milliseconds."
428+
echo "Transfer of $SIZE bytes over loopback, $MTU-byte MTU, min. $RUNS runs. All unit-less numbers are in milliseconds."
429429
echo
430430
# shellcheck disable=SC2016
431431
echo '| Client vs. server (params) | Mean ± σ | Min | Max | MiB/s ± σ | Δ `main` | Δ `main` |'
@@ -464,7 +464,22 @@ jobs:
464464
echo
465465
echo "Performance differences relative to $SHA."
466466
echo
467+
# Extract rows with significant changes (red or green heart).
468+
if grep -q ':broken_heart:\|:green_heart:' comparison.md; then
469+
# Print all lines up to and including the first separator line (header)
470+
awk 'BEGIN{found=0} /^[|][ -|:]+[|]$/ {found=1} {print} found{exit}' comparison.md
471+
grep ':broken_heart:\|:green_heart:' comparison.md
472+
echo
473+
else
474+
echo "No significant performance differences."
475+
echo
476+
fi
477+
echo "Table above only shows statistically significant changes. See all results below."
478+
echo "<details><summary>All results</summary>"
479+
echo
467480
cat comparison.md
481+
echo
482+
echo "</details>"
468483
} >> results.md
469484
cat results.md > "$GITHUB_STEP_SUMMARY"
470485
echo "$TESTBED" > testbed.txt

0 commit comments

Comments
 (0)