Skip to content

Commit

Permalink
Use new package name
Browse files Browse the repository at this point in the history
  • Loading branch information
onethumb committed Sep 7, 2024
1 parent 46a519f commit df62cbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benches/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ fn bench_crc(c: &mut Criterion) {
digest.finalize()
})
});
group.bench_with_input(BenchmarkId::new("crc64fast::simd", size), &buf, |b, buf| {
group.bench_with_input(BenchmarkId::new("crc64fast_nvme::simd", size), &buf, |b, buf| {
b.iter(|| {
let mut digest = crc64fast::Digest::new();
let mut digest = crc64fast_nvme::Digest::new();
digest.write(&buf[..(1 << size)]);
digest.write(&buf[(1 << size)..(2 << size)]);
digest.write(&buf[(2 << size)..]);
digest.sum64()
})
});
group.bench_with_input(
BenchmarkId::new("crc64fast::table", size),
BenchmarkId::new("crc64fast_nvme::table", size),
&buf,
|b, buf| {
b.iter(|| {
let mut digest = crc64fast::Digest::new_table();
let mut digest = crc64fast_nvme::Digest::new_table();
digest.write(&buf[..(1 << size)]);
digest.write(&buf[(1 << size)..(2 << size)]);
digest.write(&buf[(2 << size)..]);
Expand Down

0 comments on commit df62cbe

Please sign in to comment.