commonware-cryptography 0.0.63

Generate keys, sign arbitrary messages, and deterministically verify signatures.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use criterion::{criterion_group, Criterion};

fn bench_transport(c: &mut Criterion) {
    let (mut send, mut recv) = super::connect().unwrap();
    for n in [1 << 12, 1 << 16, 1 << 20] {
        let data = vec![0; n];
        c.bench_function(&format!("{}/n={}", module_path!(), n), |b| {
            b.iter(|| recv.recv(&send.send(&data).unwrap()).unwrap())
        });
    }
}

criterion_group!(benches, bench_transport);