-
Notifications
You must be signed in to change notification settings - Fork 966
chore: Add blake2 benchmarks #2735
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
Conversation
CodSpeed Performance ReportMerging #2735 will not alter performanceComparing Summary
Benchmarks breakdown
|
| // Benchmark just the compression function with different round counts | ||
| group.bench_function("blake2/compress_12_rounds", |b| { | ||
| let h = [ | ||
| 0x6a09e667f3bcc908u64, | ||
| 0xbb67ae8584caa73bu64, | ||
| 0x3c6ef372fe94f82bu64, | ||
| 0xa54ff53a5f1d36f1u64, | ||
| 0x510e527fade682d1u64, | ||
| 0x9b05688c2b3e6c1fu64, | ||
| 0x1f83d9abfb41bd6bu64, | ||
| 0x5be0cd19137e2179u64, | ||
| ]; | ||
| let m = [0u8; 128]; | ||
| let t = [0u64, 0u64]; | ||
| b.iter(|| { | ||
| let mut h_copy = h; | ||
| blake2::algo::compress( | ||
| black_box(12), | ||
| &mut h_copy, | ||
| black_box(&m), | ||
| black_box(t), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove -- so we are only benchmarking the precompile in the way that it will be called
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was a reason for measuring 12 rounds. Is it to compare with other blake implementations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was mainly because blake2b uses 12 rounds
No description provided.