-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Add benchmark for ssz.Root.equals #2710
Conversation
Code Climate has analyzed commit 2cb1f40 and detected 0 issues on this pull request. View more on Code Climate. |
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 we make ssz.Root use byteArrayEquals instead? 😄
We can! I ran the benchmark with ChainSafe/ssz#130 and #2713 applied, got these results:
|
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.
Looks good, but why is the ssz lib version so slow?? Can we implement an optimization there too?
since #2713 is merged do we not need this PR anymore? |
We should still commit the perf tests here |
0f051f0
to
2cb1f40
Compare
Motivation
byteArrayEquals
is better thanssz.Root.equals
in terms of performanceDescription
Added benchmark result:
Closes #2708
Update
ssz.Root.equals
is improved in ssz