1.0.0
Tschuss Status Quo - Hallo, Zukunft!
This commit is contained in:
12
benches/crypto_bench.rs
Normal file
12
benches/crypto_bench.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
// Cryptobench
|
||||
use criterion::{black_box, criterion_group, Criterion};
|
||||
|
||||
fn bench_aes_ctr(c: &mut Criterion) {
|
||||
c.bench_function("aes_ctr_encrypt_64kb", |b| {
|
||||
let data = vec![0u8; 65536];
|
||||
b.iter(|| {
|
||||
let mut enc = AesCtr::new(&[0u8; 32], 0);
|
||||
black_box(enc.encrypt(&data))
|
||||
})
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user