github-action-benchmark icon indicating copy to clipboard operation
github-action-benchmark copied to clipboard

Improve wrapping on GitHub comments for benchmarks with long names

Open jviotti opened this issue 1 year ago • 2 comments

I wonder if there is any way to improve the readability of the tables posted by this action when the benchmark names are too long. Take this one for example. We are finding it very hard to read the numbers given the last column gets wrapped.

Screenshot 2024-09-13 at 11 28 28 AM

Shorter benchmark names surely help, but it also sucks to sacrifice on their readability to make them fit... Maybe it would make sense to not put the benchmark case names on the first columns as code blocks using back ticks?

Or maybe there is a way to completely prevent the last column from wrapping? I much rather have the first column wrap.

jviotti avatar Sep 13 '24 15:09 jviotti

Another option might be not include so much precision on the current/previous columns? For example, there is probably no difference between showing 151.74767917302637 and 151.7 us and that could make some significant space?

jviotti avatar Sep 13 '24 15:09 jviotti

Thank you @jviotti for submitting this issue! I'll have a look at what options are available to make this more readable. We could probably get some additional space back by moving the units to a separate column so that ns/iter only occurs once.

ktrz avatar Sep 15 '24 18:09 ktrz