Skip to content

fix(benchmarks): widen the comparative label column so long Jasper rows align#198

Merged
DemchaAV merged 2 commits into
developfrom
fix/benchmark-table-alignment
Jun 16, 2026
Merged

fix(benchmarks): widen the comparative label column so long Jasper rows align#198
DemchaAV merged 2 commits into
developfrom
fix/benchmark-table-alignment

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

The comparative benchmark's console report uses a fixed-width label column. Long scenario labels — e.g. JasperReports (1000 rows) (24 chars) — filled the %-24s field exactly, so the | separator and the time/heap columns no longer lined up.

What changed

Widen the label column from %-24s to %-26s in ComparativeBenchmark.printTableHeader and the per-row print, so the longest scenario label keeps a gap before the separator and all 12 rows align.

Verification

Re-ran the comparative benchmark; the printed table's columns align for every row, including the 1000-row Jasper line.

DemchaAV added 2 commits June 15, 2026 19:41
…ws align

The library column was %-24s, but "JasperReports (1000 rows)" is 25 chars, so it overran the field and shoved that row's separators out of alignment. Widen the header and data-row format to %-26s (row width is now 60, matching the existing separator) so every label fits.
…t label

Replace the fixed label-column width with one computed from the widest label a row can print, so a longer label (a bigger sweep size) can no longer overflow the column and misalign the table. Build the header/row formats and the rule widths from it, and size the scaling-summary rule to its actual content width (it was 2 chars too wide).
@DemchaAV DemchaAV merged commit 641b95c into develop Jun 16, 2026
11 checks passed
@DemchaAV DemchaAV deleted the fix/benchmark-table-alignment branch June 16, 2026 06:45
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