+
Skip to content

Conversation

sylvestre
Copy link
Contributor

No description provided.

@sylvestre sylvestre force-pushed the base64-perf branch 2 times, most recently from 0d0bae8 to b3a3d6d Compare September 8, 2025 18:17
@sylvestre
Copy link
Contributor Author

Excellent results. We moved from slower to faster

 hyperfine --export-markdown base.md '/usr/bin/base64 /tmp/oneline_4G.txt' './target/release/coreutils base64 /tmp/oneline_4G.txt' './target/release/coreutils.prev base64 /tmp/oneline_4G.txt' -N --warmup 3
Benchmark 1: /usr/bin/base64 /tmp/oneline_4G.txt
  Time (mean ± σ):      4.901 s ±  0.054 s    [User: 3.904 s, System: 0.996 s]
  Range (min … max):    4.824 s …  4.971 s    10 runs

Benchmark 2: ./target/release/coreutils base64 /tmp/oneline_4G.txt
  Time (mean ± σ):      3.146 s ±  0.037 s    [User: 1.208 s, System: 1.937 s]
  Range (min … max):    3.096 s …  3.196 s    10 runs

Benchmark 3: ./target/release/coreutils.prev base64 /tmp/oneline_4G.txt
  Time (mean ± σ):      5.998 s ±  0.055 s    [User: 4.077 s, System: 1.918 s]
  Range (min … max):    5.882 s …  6.082 s    10 runs

Summary
  ./target/release/coreutils base64 /tmp/oneline_4G.txt ran
    1.56 ± 0.02 times faster than /usr/bin/base64 /tmp/oneline_4G.txt
    1.91 ± 0.03 times faster than ./target/release/coreutils.prev base64 /tmp/oneline_4G.txt
Command Mean [s] Min [s] Max [s] Relative
/usr/bin/base64 /tmp/oneline_4G.txt 4.901 ± 0.054 4.824 4.971 1.56 ± 0.02
./target/release/coreutils base64 /tmp/oneline_4G.txt 3.146 ± 0.037 3.096 3.196 1.00
./target/release/coreutils.prev base64 /tmp/oneline_4G.txt 5.998 ± 0.055 5.882 6.082 1.91 ± 0.03

Copy link

github-actions bot commented Sep 8, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

Copy link

github-actions bot commented Sep 8, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@sylvestre sylvestre marked this pull request as ready for review September 8, 2025 21:16
@sylvestre sylvestre requested a review from cakebaker September 8, 2025 21:16
sylvestre and others added 2 commits September 9, 2025 09:29
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Copy link

github-actions bot commented Sep 9, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@cakebaker cakebaker merged commit 56bbc14 into uutils:main Sep 9, 2025
94 checks passed
@sylvestre sylvestre mentioned this pull request Sep 9, 2025
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载