mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Benchmark Edwards decompression and compression
This commit is contained in:
parent
f741e50eb5
commit
273db53cfd
1 changed files with 12 additions and 0 deletions
12
src/curve.rs
12
src/curve.rs
|
|
@ -1654,6 +1654,18 @@ mod bench {
|
|||
use super::*;
|
||||
use super::test::{A_SCALAR};
|
||||
|
||||
#[bench]
|
||||
fn edwards_decompress(b: &mut Bencher) {
|
||||
let B = &constants::BASE_CMPRSSD;
|
||||
b.iter(|| B.decompress().unwrap());
|
||||
}
|
||||
|
||||
#[bench]
|
||||
fn edwards_compress(b: &mut Bencher) {
|
||||
let B = &constants::ED25519_BASEPOINT;
|
||||
b.iter(|| B.compress_edwards());
|
||||
}
|
||||
|
||||
#[bench]
|
||||
fn basepoint_mult(b: &mut Bencher) {
|
||||
let B = &constants::ED25519_BASEPOINT_TABLE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue