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

Scale custom Measure units #544

Open
epompeii opened this issue Dec 24, 2024 · 0 comments
Open

Scale custom Measure units #544

epompeii opened this issue Dec 24, 2024 · 0 comments

Comments

@epompeii
Copy link
Member

Bencher can now "smart" auto-scale most built-in Measure units: #311

However some built-in units and all custom Measure units fall back to using scientific notation for auto-scaling, ex 1e3 x units.

Add a way for users to specify their own custom unit scale mappings. Using this example from @thomaseizinger, we would be auto-scaling bits/second.

The user would just need to provide a map of ranges to new, scaled unit names. For example:

  • 0..8 => bit/second
  • 8..8_000 => bytes/second
  • 8_000..8_000_000 => kilobytes/second
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

No branches or pull requests

1 participant