Skip to content

cat: improve throughput#12194

Closed
oech3 wants to merge 1 commit intouutils:mainfrom
oech3:cat-perf
Closed

cat: improve throughput#12194
oech3 wants to merge 1 commit intouutils:mainfrom
oech3:cat-perf

Conversation

@oech3
Copy link
Copy Markdown
Contributor

@oech3 oech3 commented May 8, 2026

$ truncate -s 1PB /tmp/huge
$ strace -o /dev/null -e inject=splice:error=ENOSYS cat /tmp/huge | pv>/dev/null
[ 547MiB/s]
$ strace -o /dev/null -e inject=splice:error=ENOSYS target/release/cat /tmp/huge | pv>/dev/null
[1.82GiB/s]

closes #11801

Note that CodSpeed does not catch it as splice code-path is used.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/printf/printf-surprise is now passing!

@oech3 oech3 marked this pull request as ready for review May 8, 2026 08:34
@oech3 oech3 marked this pull request as draft May 10, 2026 07:51
@oech3 oech3 marked this pull request as ready for review May 10, 2026 08:17
@oech3 oech3 marked this pull request as draft May 10, 2026 08:31
@oech3 oech3 closed this May 10, 2026
@oech3 oech3 deleted the cat-perf branch May 10, 2026 12:28
@oech3
Copy link
Copy Markdown
Contributor Author

oech3 commented May 10, 2026

dirty code

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.

cat: GNU has better throughput without splice() code path

1 participant