Skip to content

Conversation

candrewlee14
Copy link
Contributor

@candrewlee14 candrewlee14 commented Jun 21, 2023

image

This PR is the result of a spike into looking for ways to show a set amount of sigfigs.
Instead of scientific notation, I decided to try metric prefixes (T, G, M, K, etc) since it fits in with how we already display max RSS & durations.

I feel like I landed on something that looks good and communicates the info pretty well imo.
The central alignment of each of the columns comes trivially from the comptime-known sigfig limit.

There's no pressure to accept this PR if this isn't how you'd like things to be displayed, just want to make that clear.

Potential future enhancement: I think it may be useful to color the different metric prefixes on a grayscale getting lighter as they get bigger.

Closes #28
Related to #24


Status quo for comparison:

image

@andrewrk
Copy link
Owner

I love it!

@andrewrk andrewrk merged commit 3ef68a2 into andrewrk:main Jun 21, 2023
@candrewlee14 candrewlee14 deleted the metric-prefixes branch June 21, 2023 21:50
@dweiller
Copy link

Using kilo-seconds seem a bit strange, especially going from 999s (which is 16m39s) to 1ks. I think minutes should be used - you can get to 59940s = 999m.

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.

Use some max number of sigfigs

3 participants