Skip to content

Conversation

rnro
Copy link
Contributor

@rnro rnro commented May 28, 2025

Motivation:

The current method of parsing the ASCII table output is brittle and
because the text output and the stored thresholds in JSON have different
precisions doesn't always work.

Modifications:

  • In the event that a deviation is found re-run the benchmarks in update mode and print the git diff to the logs.
  • The threshold update script scrapes this from the logs and applies it locally so that it can then be committed.
  • Add the functionality in the update script to update thresholds based on diff in logs

Result:

More reliable threshold updates.

An example of this working: https://github.com/apple/swift-nio/actions/runs/15302748893?pr=3257

rnro added 2 commits May 28, 2025 15:40
Motivation:

The current method of parsing the ASCII table output is brittle and
because the text output and the stored thresholds in JSON have different
precisions doesn't always work.

Modifications:

* In the event that a deviation is found re-run the benchmarks in update
  mode and print the git diff to the logs.
* The threshold update script scrapes this from the logs and applys it
  locally so that it can then be committed.

Result:

More reliable threshold updates.
@rnro rnro added the semver/none No version bump required. label May 28, 2025
@rnro rnro marked this pull request as ready for review May 28, 2025 14:48
@rnro rnro enabled auto-merge (squash) May 29, 2025 14:05
@rnro rnro merged commit e3e1cb5 into main May 29, 2025
36 of 41 checks passed
@rnro rnro deleted the benchmarks_print_change branch May 29, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants