mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-07 20:50:39 +00:00
Add benchmark for basepoint table creation
This commit is contained in:
parent
a4ed8e2b81
commit
e757959bb8
1 changed files with 6 additions and 0 deletions
|
|
@ -1486,4 +1486,10 @@ mod bench {
|
||||||
|
|
||||||
b.iter(|| p1.mult_by_cofactor() );
|
b.iter(|| p1.mult_by_cofactor() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[bench]
|
||||||
|
fn create_basepoint_table(b: &mut Bencher) {
|
||||||
|
let aB = ExtendedPoint::basepoint_mult(&A_SCALAR);
|
||||||
|
b.iter(|| BasepointTable::create(&aB));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue