Skip to content

Commit

Permalink
#19 BTreeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 22, 2023
1 parent 2f5e0f3 commit 3809803
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/benchmark.rs
Expand Up @@ -88,6 +88,12 @@ fn benchmark(total: usize) -> HashMap<&'static str, Duration> {
),
total
);
insert!(
"std::collections::BTreeMap",
ret,
std::collections::BTreeMap::<u32, i64>::new(),
total
);
insert!(
"tinymap::array_map::ArrayMap",
ret,
Expand All @@ -105,7 +111,7 @@ fn benchmark(total: usize) -> HashMap<&'static str, Duration> {

#[test]
pub fn benchmark_and_print() {
let times = benchmark(100000);
let times = benchmark(10000);
let ours = times.get("micromap::Map").unwrap();
for (m, d) in &times {
println!(
Expand Down

0 comments on commit 3809803

Please sign in to comment.