-
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
perf_tests: Right-align numeric metrics in markdown tables #2619
Conversation
i am using the test result of #2599 on my machine as an example: without this change
with this change
|
94ffbb0
to
f6b0d5a
Compare
the test failures are tracked by #2620 |
It's a shame the test name isn't left-aligned, it's a bit harder to read it that way. |
do you mean the column of "test"? they are. i guess the table in github's markdown is left-aligned by default. |
Right-align metrics columns in markdown output for better number comparison. Previously, metrics were left-aligned in markdown tables but right-aligned in stdout, making it difficult to visually compare numbers. The change adds colons to the right of hyphens in the header row (e.g. `|---:|`) to right-align entire columns. While this affects both headers and data cells, the improved readability of numeric values outweighs the minor tradeoff of right-aligned headers. In short: - Uses `column::print_text` with ":>" alignment for consistent formatting - Maintains existing stdout_printer right alignment - Updates `markdown_printer` alignment to match stdout behavior Signed-off-by: Kefu Chai <[email protected]>
Move print_text_header() into stdout_printer::print_configuration() since it's the only remaining caller. This simplifies the code by reducing function indirection and keeping related functionality together. Signed-off-by: Kefu Chai <[email protected]>
f6b0d5a
to
1b814a1
Compare
v2:
|
@xemul hi Pavel, could you please take another look? |
Right-align metrics columns in markdown output for better number comparison. Previously, metrics were left-aligned in markdown tables but right-aligned in stdout, making it difficult to visually compare numbers.
The change adds colons to the right of hyphens in the header row (e.g.
|---:|
) to right-align entire columns. While this affects both headers and data cells, the improved readability of numeric values outweighs the minor tradeoff of right-aligned headers.In short:
column::print_text
with ":>" alignment for consistent formattingmarkdown_printer
alignment to match stdout behavior