Skip to content

shuf: Reduce malloc#10998

Merged
cakebaker merged 1 commit intouutils:mainfrom
oech3:shuf-malloc
Feb 24, 2026
Merged

shuf: Reduce malloc#10998
cakebaker merged 1 commit intouutils:mainfrom
oech3:shuf-malloc

Conversation

@oech3
Copy link
Contributor

@oech3 oech3 commented Feb 17, 2026

No description provided.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 17, 2026

Merging this PR will improve performance by 15.19%

⚡ 2 improved benchmarks
✅ 286 untouched benchmarks
⏩ 40 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory shuf_input_range[1000000] 8.9 MB 7.7 MB +15.19%
Simulation shuf_input_range[1000000] 92.3 ms 85.9 ms +7.44%

Comparing oech3:shuf-malloc (07c0b01) 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
Copy link
Contributor Author

oech3 commented Feb 17, 2026

shuf_lines[100000]
-3%
27.6 ms -> 28.3 ms

@oech3 oech3 force-pushed the shuf-malloc branch 4 times, most recently from 3df1603 to 622c06d Compare February 17, 2026 18:37
@oech3
Copy link
Contributor Author

oech3 commented Feb 17, 2026

Hmm, I can't fix shuf_lines[100000]. Should I undraft this as a trade-off?

@oech3 oech3 force-pushed the shuf-malloc branch 3 times, most recently from e00e478 to 92205f2 Compare February 17, 2026 19:09
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/cut/bounded-memory. tests/cut/bounded-memory is passing on 'main'. Maybe you have to rebase?
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.
Congrats! The gnu test tests/cp/link-heap is now passing!

@oech3 oech3 marked this pull request as ready for review February 17, 2026 19:43
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/cp/link-heap is now passing!

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/date/date-locale-hour is no longer failing!
Note: The gnu test tests/unexpand/bounded-memory is now being skipped but was previously passing.

@anastygnome
Copy link
Contributor

Good job!

@cakebaker cakebaker merged commit 74b8924 into uutils:main Feb 24, 2026
157 checks passed
@cakebaker
Copy link
Contributor

Kudos for the performance improvement, thanks!

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.

4 participants