Skip to content

Commit 1726b75

Browse files
committed
add benches
1 parent b6a029e commit 1726b75

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

ascon-hash256/benches/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#![feature(test)]
2+
extern crate test;
3+
4+
use digest::bench_update;
5+
use test::Bencher;
6+
7+
bench_update!(
8+
ascon_hash256::AsconHash256::default();
9+
ascon_hash256_10 10;
10+
ascon_hash256_100 100;
11+
ascon_hash256_1000 1000;
12+
ascon_hash256_10000 10000;
13+
);

ascon-xof128/benches/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#![feature(test)]
2+
extern crate test;
3+
4+
use digest::bench_update;
5+
use test::Bencher;
6+
7+
bench_update!(
8+
ascon_xof128::AsconXof128::default();
9+
ascon_xof128_10 10;
10+
ascon_xof128_100 100;
11+
ascon_xof128_1000 1000;
12+
ascon_xof128_10000 10000;
13+
);

0 commit comments

Comments
 (0)