Skip to content

Bench fn fxhash #5

@RoDmitry

Description

@RoDmitry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions