Skip to content

Align base64 with GNU base64.pl tests#9194

Merged
sylvestre merged 1 commit into
uutils:mainfrom
karanabe:test/fix-base64
Nov 8, 2025
Merged

Align base64 with GNU base64.pl tests#9194
sylvestre merged 1 commit into
uutils:mainfrom
karanabe:test/fix-base64

Conversation

@karanabe

@karanabe karanabe commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

GNU’s tests/basenc/base64.pl revealed that our base64 decoder rejected streams where = appeared before EOF. This change updates the shared base logic to detect padding anywhere in the input, teaches the SIMD decoder to process padded and unpadded segments sequentially, and adds unit coverage for the concatenated cases.

#9127

Comment thread src/uucore/src/lib/features/encoding.rs Outdated
@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/basenc/base64 is no longer failing!

@codspeed-hq

codspeed-hq Bot commented Nov 8, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #9194 will improve performances by 3.1%

Comparing karanabe:test/fix-base64 (bc6bd60) with main (c615a0f)

Summary

⚡ 1 improvement
✅ 125 untouched
⏩ 2 skipped1

Benchmarks breakdown

Benchmark BASE HEAD Change
factor_multiple_u128s[18446744073709551616] 331.4 ms 321.5 ms +3.1%

Footnotes

  1. 2 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 Nov 8, 2025

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/basenc/base64 is no longer failing!

@sylvestre sylvestre merged commit 92bb655 into uutils:main Nov 8, 2025
122 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

well done, 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.

2 participants