Benchmark current internal impl of poseidon + external available impls#305
Draft
Ben-PH wants to merge 11 commits into
Draft
Benchmark current internal impl of poseidon + external available impls#305Ben-PH wants to merge 11 commits into
Ben-PH wants to merge 11 commits into
Conversation
Benchmark for d1d077aClick to view benchmark
|
Benchmark for d1d077aClick to view benchmark
|
Benchmark for d1d077aClick to view benchmark
|
288a2d7 to
ad2896a
Compare
Benchmark for 30da07cClick to view benchmark
|
Benchmark for 30da07cClick to view benchmark
|
Benchmark for 30da07cClick to view benchmark
|
ad2896a to
e64ad17
Compare
Benchmark for ed52774Click to view benchmark
|
Benchmark for ed52774Click to view benchmark
|
Benchmark for ed52774Click to view benchmark
|
e64ad17 to
b65433b
Compare
Benchmark for e29672fClick to view benchmark
|
Benchmark for e29672fClick to view benchmark
|
Benchmark for e29672fClick to view benchmark
|
Benchmark for bda3c5aClick to view benchmark
|
Benchmark for bda3c5aClick to view benchmark
|
Benchmark for bda3c5aClick to view benchmark
|
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NOTE: While this is in draft phase, I'll be working using the changes made in the add-rust-overlay branch
We currently use an internal implementation of the Poseidon hashing algorithm.
There are other implementations of Poseidon, and we need empirical data to make future decisions.
Initial plan
Notes taken
light_poseidon parameters:
our corresponding struct:
...but for our impl, you must provide an array of tuples to create what is a vector of parameters, e.g.:
...which for this e.g. provides:
looking at the implementation, this collection of parameters gets selected at runtime:
...and the chosen param_index is the entry in the collection of generated parameters.
As for difference in params: we have the skip matrix field, they have the alpha field.
The light-poseidon ecosystem generates
5for thealphafield when generating forbn254_x5. I need to investigate this parameter.Our benchmarks do not use skip matrices.
Initial results: