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

crypto/bls12381: use worst case scalar for input to G1/G2 mul benchmarks #26447

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

jwasinger
Copy link
Contributor

Afaict, the only potential use-case for this code is to serve as a reference implementation for EIP-2537 G1Mul and G2Mul precompiles. It makes sense to keep consistency with the benchmarks in core/vm/contracts_test.go which benchmark worst-case inputs.

@jwasinger jwasinger marked this pull request as ready for review January 6, 2023 22:59
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

G1Mul-8   412µs ±40%   698µs ±43%  +69.45%  (p=0.000 n=10+10)

@holiman holiman merged commit faff980 into ethereum:master Jan 10, 2023
@holiman holiman added this to the 1.11.0 milestone Jan 10, 2023
@jwasinger jwasinger deleted the bls12381-ecmul-bench-worst-case branch January 10, 2023 15:19
shekhirin pushed a commit to shekhirin/go-ethereum that referenced this pull request Jun 6, 2023
…rks (ethereum#26447)

* test

* crypto/bls12381: use worst case scalar for input to G1/G2 mul benchmarks
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