Skip to content

Commit

Permalink
Merge pull request #224 from JavaLot/master
Browse files Browse the repository at this point in the history
jonhoo/flurry added to the test #180
  • Loading branch information
yegor256 authored Nov 5, 2024
2 parents 848beb4 + 940c141 commit 9f1b402
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
6 changes: 6 additions & 0 deletions tests/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -132,6 +133,11 @@ fn benchmark(total: usize) -> HashMap<&'static str, Duration> {
heapless::LinearMap::<u32, i64, CAPACITY>::new(),
total
);
{
let m = flurry::HashMap::<u32, i64>::new();
let p = m.pin();
insert!("flurry::HashMap", ret, p, total);
}
insert!(
"micromap::Map",
ret,
Expand Down

0 comments on commit 9f1b402

Please sign in to comment.