Skip to content

Comments

du: malloc perf +3~6%#11034

Merged
cakebaker merged 1 commit intouutils:mainfrom
oech3:sort-0fill
Feb 22, 2026
Merged

du: malloc perf +3~6%#11034
cakebaker merged 1 commit intouutils:mainfrom
oech3:sort-0fill

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Feb 20, 2026

different with #11017

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 20, 2026

Merging this PR will improve performance by 5.84%

⚡ 4 improved benchmarks
✅ 284 untouched benchmarks
⏩ 40 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation du_max_depth_balanced_tree[(6, 4, 10)] 27 ms 25.9 ms +4.18%
Simulation du_deep_tree[(100, 3)] 1.2 ms 1.2 ms +3.76%
Simulation du_summarize_balanced_tree[(5, 4, 10)] 7 ms 6.7 ms +4.27%
Simulation du_wide_tree[(5000, 500)] 9.8 ms 9.3 ms +5.84%

Comparing oech3:sort-0fill (d243986) with main (de5c827)

Open in CodSpeed

Footnotes

  1. 40 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.

@oech3 oech3 force-pushed the sort-0fill branch 3 times, most recently from 6804e43 to d964542 Compare February 20, 2026 06:47
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/date/date-locale-hour. tests/date/date-locale-hour is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/date/resolution. tests/date/resolution is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/sort/sort-compress. tests/sort/sort-compress is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/sort/sort-compress-hang. tests/sort/sort-compress-hang is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/sort/sort-compress-proc. tests/sort/sort-compress-proc is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@oech3
Copy link
Contributor Author

oech3 commented Feb 20, 2026

Oh no...

@oech3 oech3 closed this Feb 20, 2026
@oech3 oech3 deleted the sort-0fill branch February 20, 2026 08:02
@oech3 oech3 restored the sort-0fill branch February 20, 2026 08:59
@oech3 oech3 reopened this Feb 20, 2026
@oech3 oech3 changed the title sort: Drop useless 0 fill without unsafe du: malloc perf Feb 20, 2026
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/date/date-locale-hour. tests/date/date-locale-hour is passing on 'main'. Maybe you have to rebase?

@oech3 oech3 marked this pull request as ready for review February 20, 2026 09:49
@oech3 oech3 changed the title du: malloc perf du: malloc perf +3~6% Feb 20, 2026
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/date/date-locale-hour. tests/date/date-locale-hour is passing on 'main'. Maybe you have to rebase?
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tty/tty-eof (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/date/date-locale-hour is no longer failing!
Note: The gnu test tests/pr/bounded-memory is now being skipped but was previously passing.

@cakebaker cakebaker merged commit c610149 into uutils:main Feb 22, 2026
157 checks passed
@cakebaker
Copy link
Contributor

Thanks!

@oech3 oech3 deleted the sort-0fill branch February 22, 2026 15:25
@oech3
Copy link
Contributor Author

oech3 commented Feb 22, 2026

still slower than gnu

Summary
  gnu9.10/du ran
    1.80 ± 0.30 times faster than du

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.

2 participants