Benchmark Edwards decompression and compression

This commit is contained in:
Henry de Valence 2017-05-20 15:48:44 -07:00
parent f741e50eb5
commit 273db53cfd

View file

@ -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;