aboutsummaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2019-12-12 23:31:02 -0500
committerJack O'Connor <[email protected]>2019-12-12 23:31:02 -0500
commitfe9b8fedd7743ab017c7a3eab40a6128396bd4c9 (patch)
treeb58bcaa668920d5f71654228c516af908714edb3 /benches
parentb5f1e925f79589ade494289d730c1fb5c25a09b1 (diff)
fix benchmarks build
Diffstat (limited to 'benches')
-rw-r--r--benches/bench.rs28
1 files changed, 23 insertions, 5 deletions
diff --git a/benches/bench.rs b/benches/bench.rs
index da0f7d3..8fefe61 100644
--- a/benches/bench.rs
+++ b/benches/bench.rs
@@ -49,7 +49,7 @@ impl RandomInput {
}
type CompressInPlaceFn =
- unsafe fn(cv: &mut [u32; 8], block: &[u8; BLOCK_LEN], block_len: u8, offset: u64, flags: u8);
+ unsafe fn(cv: &mut [u32; 8], block: &[u8; BLOCK_LEN], block_len: u8, counter: u64, flags: u8);
fn bench_single_compression_fn(b: &mut Bencher, f: CompressInPlaceFn) {
let mut state = [1u32; 8];
@@ -86,8 +86,8 @@ fn bench_single_compression_avx512(b: &mut Bencher) {
type HashManyFn<A> = unsafe fn(
inputs: &[&A],
key: &[u32; 8],
- offset: u64,
- offset_deltas: &[u64; 17],
+ counter: u64,
+ increment_counter: blake3::IncrementCounter,
flags: u8,
flags_start: u8,
flags_end: u8,
@@ -107,7 +107,16 @@ fn bench_many_chunks_fn(b: &mut Bencher, f: HashManyFn<[u8; CHUNK_LEN]>, degree:
.map(|i| array_ref!(i.get(), 0, CHUNK_LEN))
.collect();
let mut out = [0; MAX_SIMD_DEGREE * OUT_LEN];
- f(&input_arrays[..], &[0; 8], 0, &[0; 17], 0, 0, 0, &mut out);
+ f(
+ &input_arrays[..],
+ &[0; 8],
+ 0,
+ blake3::IncrementCounter::Yes,
+ 0,
+ 0,
+ 0,
+ &mut out,
+ );
});
}
}
@@ -160,7 +169,16 @@ fn bench_many_parents_fn(b: &mut Bencher, f: HashManyFn<[u8; BLOCK_LEN]>, degree
.map(|i| array_ref!(i.get(), 0, BLOCK_LEN))
.collect();
let mut out = [0; MAX_SIMD_DEGREE * OUT_LEN];
- f(&input_arrays[..], &[0; 8], 0, &[0; 17], 0, 0, 0, &mut out);
+ f(
+ &input_arrays[..],
+ &[0; 8],
+ 0,
+ blake3::IncrementCounter::No,
+ 0,
+ 0,
+ 0,
+ &mut out,
+ );
});
}
}