Skip to content

Commit

Permalink
add xof benchmarks for non-power-of-2 lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Sep 4, 2024
1 parent 8e2e07e commit 95da6b5
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,24 +526,79 @@ fn bench_xof(b: &mut Bencher, len: usize) {

#[bench]
fn bench_xof_01_block(b: &mut Bencher) {
bench_xof(b, BLOCK_LEN);
bench_xof(b, 1 * BLOCK_LEN);
}

#[bench]
fn bench_xof_02_blocks(b: &mut Bencher) {
bench_xof(b, 2 * BLOCK_LEN);
}

#[bench]
fn bench_xof_03_blocks(b: &mut Bencher) {
bench_xof(b, 3 * BLOCK_LEN);
}

#[bench]
fn bench_xof_04_blocks(b: &mut Bencher) {
bench_xof(b, 4 * BLOCK_LEN);
}

#[bench]
fn bench_xof_05_blocks(b: &mut Bencher) {
bench_xof(b, 5 * BLOCK_LEN);
}

#[bench]
fn bench_xof_06_blocks(b: &mut Bencher) {
bench_xof(b, 6 * BLOCK_LEN);
}

#[bench]
fn bench_xof_07_blocks(b: &mut Bencher) {
bench_xof(b, 7 * BLOCK_LEN);
}

#[bench]
fn bench_xof_08_blocks(b: &mut Bencher) {
bench_xof(b, 8 * BLOCK_LEN);
}

#[bench]
fn bench_xof_09_blocks(b: &mut Bencher) {
bench_xof(b, 9 * BLOCK_LEN);
}

#[bench]
fn bench_xof_10_blocks(b: &mut Bencher) {
bench_xof(b, 10 * BLOCK_LEN);
}

#[bench]
fn bench_xof_11_blocks(b: &mut Bencher) {
bench_xof(b, 11 * BLOCK_LEN);
}

#[bench]
fn bench_xof_12_blocks(b: &mut Bencher) {
bench_xof(b, 12 * BLOCK_LEN);
}

#[bench]
fn bench_xof_13_blocks(b: &mut Bencher) {
bench_xof(b, 13 * BLOCK_LEN);
}

#[bench]
fn bench_xof_14_blocks(b: &mut Bencher) {
bench_xof(b, 14 * BLOCK_LEN);
}

#[bench]
fn bench_xof_15_blocks(b: &mut Bencher) {
bench_xof(b, 15 * BLOCK_LEN);
}

#[bench]
fn bench_xof_16_blocks(b: &mut Bencher) {
bench_xof(b, 16 * BLOCK_LEN);
Expand Down

0 comments on commit 95da6b5

Please sign in to comment.