Skip to content

Commit 8ea5b48

Browse files
committed
Update criterion to 0.7
Plus other misc updates.
1 parent 01f3da9 commit 8ea5b48

File tree

3 files changed

+38
-39
lines changed

3 files changed

+38
-39
lines changed

Cargo.lock

Lines changed: 36 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ libc = "0.2"
2626
regex = "1.11"
2727

2828
[dev-dependencies]
29-
criterion = "0.6"
29+
criterion = "0.7"
3030
cbindgen = "0.29"
3131

3232
# lto=true has a big improvement in performance

benches/benchmark.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crc_fast::CrcAlgorithm;
55
use criterion::*;
66
use rand::{rng, RngCore};
77
use std::time::Duration;
8+
use std::hint::black_box;
89

910
pub const SIZES: &[(&str, i32); 2] = &[
1011
("1 MiB", 1024 * 1024),

0 commit comments

Comments
 (0)