Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sha-256 perf #31

Merged
merged 1 commit into from
Dec 31, 2024
Merged

sha-256 perf #31

merged 1 commit into from
Dec 31, 2024

Conversation

cmazakas
Copy link
Contributor

First pass attempt at speeding up the sha-256 implementation.

On my machine, benchmark/buffer.cpp is:

boost::hash2::sha2_256 (N=65536): 174029441: 14975 ms, 273.52 MB/s
--
boost::hash2::sha2_256 (N=15): 174029441: 15397 ms, 266.02 MB/s
--
boost::hash2::sha2_256 (N=4): 174029441: 18116 ms, 226.10 MB/s

and with these changes:

boost::hash2::sha2_256 (N=65536): 174029441: 12777 ms, 320.57 MB/s
--
boost::hash2::sha2_256 (N=15): 174029441: 13570 ms, 301.84 MB/s
--
boost::hash2::sha2_256 (N=4): 174029441: 15982 ms, 256.28 MB/s

@pdimov
Copy link
Owner

pdimov commented Dec 30, 2024

+17% isn't bad at all.

@pdimov pdimov merged commit 1168816 into pdimov:develop Dec 31, 2024
61 checks passed
@cmazakas cmazakas deleted the feature/sha-256-perf branch December 31, 2024 15:32
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