|
let set = Set::try_from(original_set.clone()).expect("failed to build set"); |
|
println!("set construction took: {:?}", t0.elapsed()); |
|
|
|
let mut group = c.benchmark_group("set"); |
|
group.throughput(Throughput::Elements(query_n as u64)); |
|
|
|
group.bench_function("entropy-contains-fxhash", |b| { |
|
b.iter(|| { |
|
for key in original_set.iter().take(query_n) { |
|
set.contains(black_box(key)); |
|
} |
|
}); |
|
}); |
Isn't it supposed to be WyHash? And then further down (std-contains-fxhash) also wrong hasher.
Seems like originally it used fxhash instead of WyHash.
entropy-map/benches/set.rs
Lines 24 to 36 in 0943c6d
Isn't it supposed to be
WyHash? And then further down (std-contains-fxhash) also wrong hasher.Seems like originally it used
fxhashinstead ofWyHash.