Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show singular 'warmup run' text for single warmup #795

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KevSlashNull
Copy link

@KevSlashNull KevSlashNull commented Jan 8, 2025

If the user only requests a single warmup, we still show Performing warmup runs, which might be confusing. Therefore, this uses the singular Performing warmup run as message for the progress bar if only a single warmup was requested.

How to test?

  1. Run hyperfine --warmup 2 'sleep 10'
  2. See the usual Performing warmup runs message
  3. Run hyperfine --warmup 1 'sleep 10'
  4. See the new Performing warmup run (singular!) message in the progress bar

Screenshots

Before After
image image

If the user only requests a single warmup, we still show
`Performing warmup runs`, which might be confusing. Therefore, this uses
the singular `Performing warmup run` as message for the progress bar if
only a single warmup was requested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant