diff --git a/Cargo.toml b/Cargo.toml index ae443ac..02b9de7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,7 @@ linked-hash-map = "0.5.6" linear-map = "1.2.0" indexmap = "2.2.6" litemap = "0.7.0" +flurry = "0.5" [features] default = [] diff --git a/tests/benchmark.rs b/tests/benchmark.rs index b459e80..c28901f 100644 --- a/tests/benchmark.rs +++ b/tests/benchmark.rs @@ -54,6 +54,7 @@ macro_rules! eval { macro_rules! insert { ($name:expr, $ret:expr, $map:expr, $total:expr) => {{ let start = Instant::now(); + #[allow(unused_mut)] let mut m = $map; eval!(m, $total, CAPACITY); let e = start.elapsed(); @@ -132,6 +133,11 @@ fn benchmark(total: usize) -> HashMap<&'static str, Duration> { heapless::LinearMap::::new(), total ); + { + let m = flurry::HashMap::::new(); + let p = m.pin(); + insert!("flurry::HashMap", ret, p, total); + } insert!( "micromap::Map", ret,