bench: add cksum performance benchmarks#9075
Merged
RenjiSann merged 4 commits intouutils:mainfrom Oct 30, 2025
Merged
Conversation
- Add comprehensive benchmarks for all 17 SUPPORTED_ALGORITHMS - Include custom SHAKE algorithm benchmarks using direct digest calculation - Add CI integration with benchmark workflow - No core cksum logic modifications to avoid merge conflicts
- Split bench_shake_algorithm macro into separate patterns for Shake128 and Shake256 - Only import the specific SHAKE type that is used in each macro invocation - Resolves CI compilation errors due to unused import warnings
CodSpeed Performance ReportMerging #9075 will degrade performances by 3.02%Comparing Summary
Benchmarks breakdown
Footnotes
|
|
GNU testsuite comparison: |
RenjiSann
reviewed
Oct 29, 2025
3d0d291 to
f0c220d
Compare
- Use length as parameter instead of hardcoded values - Add algorithm-specific lengths for each algorithm (224, 256, 384, 512 bits) - Resolves benchmarks running too fast (<500µs) due to invalid length parameters - All algorithms now produce meaningful hash outputs with proper timing
f0c220d to
caff1bc
Compare
|
GNU testsuite comparison: |
Collaborator
|
Almost good, the |
SHA224, SHA256, SHA384, and SHA512 algorithms don't support the --length parameter since the length is implicit in their algorithm names. Only the generic sha2 and sha3 algorithms require explicit length specification.
|
GNU testsuite comparison: |
Collaborator
|
Thanks you ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cksum lacks performance benchmarks while other utilities have them.