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

Formatting of stats output #144

Closed
spier opened this issue Oct 16, 2023 · 3 comments
Closed

Formatting of stats output #144

spier opened this issue Oct 16, 2023 · 3 comments

Comments

@spier
Copy link
Contributor

spier commented Oct 16, 2023

The new stats features by #127 introduced two changes in the output, that might not have been intended.

I marked them in the screenshot below, and will try my best to describe them in text as well.

Label of 2nd column

Previous the label of the 2nd column of the stats table was "Value".
Now it is "Average".

However "Average" is not correct for rows 4-6 in the table, as those are just counts.

I don't have a great suggestion here. One could split up the table and introduce a new header for row 4-6.
Not sure how future-proof that would be either though.

Milliseconds in average/median/90th-percentile

The stats in the first 3 rows contain the milliseconds.

They reduce readability a bit, and I doubt that many users will need them.
My recommendation would be to remove the milliseconds.

One might even argue that for most purposes the seconds would not be needed either.
That might be a matter

Backwards compatibility?

@zkoppert had mentioned that introducing a new configuration option for the new stats would be good.

I guess that as the 2nd row still contains the average (like before), that idea was dropped?

Screenshot

Screenshot 2023-10-16 at 22 08 17

@zkoppert
Copy link
Member

Hey @spier! Thanks for opening this issue! Really important points that you bring up here.

I think for the column header being a mismatch of averages and counts, we could split the summary table you show in the screenshot into 2 summary tables. One table for the first 3 rows (4 rows if you include the header) and another table for the last 3 (containing counts). Any thoughts on that?

I think @MaineC decided not to implement the configurability piece and I was thinking that was okay since the original information (average) was still there. Maybe though with this significant formatting change, I should have rolled the version number to v3 to signify breaking changes. Love to hear you thoughts on that as well.

I also agree with removing the milliseconds. I can create a pull request for that.

@spier
Copy link
Contributor Author

spier commented Oct 17, 2023

Hey @spier! Thanks for opening this issue! Really important points that you bring up here.

Hi @zkoppert :)

I think for the column header being a mismatch of averages and counts, we could split the summary table you show in the screenshot into 2 summary tables. One table for the first 3 rows (4 rows if you include the header) and another table for the last 3 (containing counts). Any thoughts on that?

That would work.

The first column of those two tables would then have different with and look misaligned. But not that big of a deal.

One implementation alternative might be to keep it in the same table but add a row in between with new headings?
(We would have to try that out in markdown yet to see how it looks)

I think @MaineC decided not to implement the configurability piece and I was thinking that was okay since the original information (average) was still there. Maybe though with this significant formatting change, I should have rolled the version number to v3 to signify breaking changes. Love to hear you thoughts on that as well.

Not sure about this either. How did this change impact the JSON output format?
As JSON might be used for processing the metrics further, that is the area where I can consider things to break.

If the users just consume the metrics "with their eyes", i.e. they look at them in the GitHub issue, then such a change does not really break anything, does it?

I also agree with removing the milliseconds. I can create a pull request for that.

Go for it! :)

@zkoppert
Copy link
Member

Closing this for now. Will open a new issue if we find that users have broken workflows because json data changed.

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

2 participants