Skip to content

du: preserve suffix-only block size units - #13655

Open
wtcpython wants to merge 1 commit into
uutils:mainfrom
wtcpython:du-block-size-suffix
Open

du: preserve suffix-only block size units#13655
wtcpython wants to merge 1 commit into
uutils:mainfrom
wtcpython:du-block-size-suffix

Conversation

@wtcpython

Copy link
Copy Markdown
Contributor

Fixes #13605.

Preserve unit suffixes for block sizes specified without a numeric prefix, including values from DU_BLOCK_SIZE, BLOCK_SIZE, and BLOCKSIZE. Numeric block sizes keep their existing output format.

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/tail-n0f (fails in this run but passes in the 'main' branch)
Note: The gnu test tests/dd/no-allocate is now being skipped but was previously passing.

@codspeed-hq

codspeed-hq Bot commented Jul 30, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 18.4%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 344 untouched benchmarks
⏩ 46 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation df_with_path 570.9 µs 699.6 µs -18.4%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing wtcpython:du-block-size-suffix (007a704) with main (93025b5)

Open in CodSpeed

Footnotes

  1. 46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

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.

du -BM behaves differently from GNU version

1 participant