Skip to content

Commit

Permalink
#19 definitely faster
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 23, 2023
1 parent 5281040 commit 7eb85f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::collections::HashMap;
use std::env;
use std::time::{Duration, Instant};

const CAPACITY: usize = 10;
const CAPACITY: usize = 1;

macro_rules! eval {
($map:expr, $total:expr, $capacity:expr) => {{
Expand Down Expand Up @@ -131,7 +131,7 @@ fn benchmark(total: usize) -> HashMap<&'static str, Duration> {

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

0 comments on commit 7eb85f3

Please sign in to comment.