Skip to content

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
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
@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.

3 participants