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

Fix merkle bench for poseidon hashing #1389

Merged
merged 2 commits into from
Dec 15, 2020
Merged

Fix merkle bench for poseidon hashing #1389

merged 2 commits into from
Dec 15, 2020

Conversation

cryptonemo
Copy link
Collaborator

No description provided.

.map(|x| {
<Bls12 as ff::ScalarEngine>::Fr::from_repr(x.0).expect("from_repr failure")
.enumerate()
.map(|(i, x)| {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone have a preference on this enumerate? It was helpful with debugging, but if there are perf reasons to ditch it, it's no longer needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fine


fn merkle_benchmark_poseidon(c: &mut Criterion) {
#[cfg(feature = "big-sector-sizes-bench")]
let params = vec![64];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should have the larger numbers in there

@cryptonemo cryptonemo merged commit e55ae0b into master Dec 15, 2020
@cryptonemo cryptonemo deleted the fix-merkle-bench branch December 15, 2020 21:49
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