-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spec: show time in human friendly way in --profile
#2875
Conversation
Mmh, I'm actually not too sure this is the easiest to read, vs determining the maximum, the unit to represent it as integer and representing all others as fractions of that unit. |
I don't know if it matters much, the comparison between spec times, only how long they take. For example:
Reading "seconds" vs "milliseconds" is already clear there's a huge difference. Showing the second as |
@jhass after some though, I think normalizing the unit is probably a good idea. This is RSpec's output for
I like it that the seconds are all more or less aligned, and that you can quickly see where the spec is defined. The "slowest example groups" is nice too, but we can leave that for later. |
80b0024
to
af4b420
Compare
af4b420
to
3c0fc5b
Compare
I thought I commented this before... seems not. With the last change, the output now looks like this:
I think that's good enough, even with those "e-05", which can be read as "too fast, don't pay attention to this". |
Before:
After: