Skip to content

du: our implementation is slower than GNU's#13296

Open
wilmerdooley wants to merge 1 commit into
uutils:mainfrom
wilmerdooley:oss/issue-6845
Open

du: our implementation is slower than GNU's#13296
wilmerdooley wants to merge 1 commit into
uutils:mainfrom
wilmerdooley:oss/issue-6845

Conversation

@wilmerdooley

Copy link
Copy Markdown

Resolves #6845.

On firefox source code (lot of files and directories):

Signed-off-by: wilmerdooley <wilmerdooley1@gmail.com>
Comment thread src/uu/du/src/du.rs
count_links: bool,
verbose: bool,
excludes: Vec<Pattern>,
// Whether `--time` was requested. When it is not, the `metadata` field of a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure we need this comment

@codspeed-hq

codspeed-hq Bot commented Jul 7, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 6.3%

⚡ 4 improved benchmarks
✅ 327 untouched benchmarks
⏩ 46 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation du_summarize_balanced_tree[(5, 4, 10)] 6.7 ms 6.2 ms +8.28%
Simulation du_max_depth_balanced_tree[(6, 4, 10)] 25.6 ms 23.9 ms +7.06%
Simulation du_deep_tree[(100, 3)] 1.1 ms 1 ms +6.25%
Simulation du_wide_tree[(5000, 500)] 9.3 ms 9 ms +3.65%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing wilmerdooley:oss/issue-6845 (4d185a5) with main (3bd6665)

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.

@github-actions

github-actions Bot commented Jul 7, 2026

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/tail/tail-n0f (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/io-errors (passes in this run but fails in the 'main' branch)

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: our implementation is slower than GNU's

2 participants