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

Refactor BaseFold hashing benchmark. #556

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

yczhangsjtu
Copy link
Collaborator

Extract a small independent change from #294

@yczhangsjtu yczhangsjtu changed the title Refactor hashing benchmark. Refactor BaseFold hashing benchmark. Nov 5, 2024
@@ -5,28 +5,19 @@ use goldilocks::Goldilocks;
use mpcs::util::hash::{Digest, hash_two_digests};
use poseidon::poseidon_hash::PoseidonHash;

fn random_ceno_goldy() -> Goldilocks {
Goldilocks::random(&mut test_rng())
Copy link
Collaborator

Choose a reason for hiding this comment

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

A better style probably been changed to call test_rng() once and reused it instead of instantiate & drop immediately for every field element, which is very costly.

The good thing is it's put in bench "setup", at least not distorted benchmark results.

Not directly related to this PR, as it already there for long time. overall LGTM!

@hero78119 hero78119 enabled auto-merge (squash) November 26, 2024 15:03
@hero78119 hero78119 merged commit 1edbf65 into master Nov 26, 2024
6 checks passed
@hero78119 hero78119 deleted the feat/basefold-refactor-benchmark-hashing branch November 26, 2024 15:19
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