Skip to content

Conversation

@jdmarshall
Copy link
Collaborator

@jdmarshall jdmarshall commented Dec 6, 2025

By leveraging a bit more ANSI block character trickery.

Before and after:

test 1                                        | █████████████████████████ | 120,782,882 ops/sec | 10 samples 
test 1                                        ▏█████████████████████████▕ 121,270,307 ops/sec | 11 samples 

I've previously posted two other PRs with a similar motive: The right hand side of the chart output is more actionable than the left. Therefore anything I can do to shift this farther left so that clipping or line wrapping doesn't tank your ability to scan for problems, is worth doing.

This is probably the last such improvement that can be made. The column widths can already be adjusted, and this is the last of the whitespace that is likely worth touching, with the possible exception of "120,782,882 ops/sec" -> "120,782,882/sec".

@jdmarshall
Copy link
Collaborator Author

jdmarshall commented Dec 6, 2025

Ironically the wysiwig editor makes the two lines identical and I spent an extra ten minutes trying to figure out if I'd screwed up my rebase or was fat fingering the clipboard commands. It's only the monospaced layout where they are discernible. Fucking kerning, man.

… ANSI line drawing.

test 1                                        ▏█████████████████████████▕ 125,555,696 ops/sec | 11 samples

By using a left and right justified equivalent of "|" there's enough space
to distinguish the bar from the end braces. These still look reasonable
pasted into Github issue comments (which was the problem with one of
my earlier attempts to make the bar display narrower).

Since the important info in the chart output is at the right end of
the line, this is what will probably be the last in my edits to
try to shift the punchline of the output as far left as is possible.
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.

1 participant