mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-11 00:11:37 +01:00
Catch up with algebra (#106)
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
This commit is contained in:
@@ -223,6 +223,7 @@ macro_rules! ec_bench {
|
||||
}
|
||||
|
||||
fn msm_131072(b: &mut $crate::bencher::Bencher) {
|
||||
use ark_ec::msm::VariableBaseMSM;
|
||||
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
|
||||
const SAMPLES: usize = 131072;
|
||||
|
||||
@@ -234,7 +235,7 @@ macro_rules! ec_bench {
|
||||
.map(|_| Fr::rand(&mut rng).into_bigint())
|
||||
.collect();
|
||||
b.bench_n(1, |b| {
|
||||
b.iter(|| ark_ec::msm::VariableBase::msm(&v, &scalars));
|
||||
b.iter(|| <$projective as VariableBaseMSM>::msm_bigint(&v, &scalars));
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user