Skip to content

Commit 7117001

Browse files
committed
refactor(bench): reduce header and separator width from 110 to 80 chars
Changed the width of all headers and line separators to 80 characters to better fit standard terminal widths: - Header boxes: 110 chars β†’ 80 chars (78 '═' chars + 2 for borders) - Section separators: 110 chars β†’ 80 chars (80 '─' chars) - Updated padding calculation: (107 - text_width) β†’ (77 - text_width) This makes the output more readable on standard 80-column terminals.
1 parent 59b5561 commit 7117001

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

β€Žsrc/bin/bench_throughput.rsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,12 @@ fn print_header(text: &str) {
399399
SetForegroundColor(Color::Cyan),
400400
SetAttribute(Attribute::Bold),
401401
Print("β•”"),
402-
Print("═".repeat(108)),
402+
Print("═".repeat(78)),
403403
Print("β•—\nβ•‘ "),
404404
Print(text),
405-
Print(" ".repeat(107 - text_width)),
405+
Print(" ".repeat(77 - text_width)),
406406
Print("β•‘\nβ•š"),
407-
Print("═".repeat(108)),
407+
Print("═".repeat(78)),
408408
Print("╝\n"),
409409
ResetColor
410410
);
@@ -421,7 +421,7 @@ fn print_section_header(text: &str) {
421421
ResetColor,
422422
Print("\n"),
423423
SetForegroundColor(Color::DarkGrey),
424-
Print("─".repeat(110)),
424+
Print("─".repeat(80)),
425425
ResetColor
426426
);
427427
}

0 commit comments

Comments
Β (0)