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

bench: add serial MSM benchmark #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mratsim
Copy link
Contributor

@mratsim mratsim commented Nov 27, 2024

This adds a benchmark for multi-scalar-multiplication on G1. It is the key operation for KZG commitments.

When comparing improvement over blst, using Nim is more convenient than Rust as the Rust wrapper always parallelize MSM.

The code is built in CI to make sure it doesn't go stale.

On a Ryzen 9 9950X, overclocked at 5.9GHz single core turbo.
nim c -r --cc:clang -d:danger --passC:-march=native --hints:off --warnings:off --outdir:build benchmarks/bls12381_msm_g1.nim
image

Constantine
CC=clang nimble bench_ec_msm_bls12_381_g1
image
image
image

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.

1 participant