anchorhash 0.2.2

A consistent hashing algorithm that outperforms state-of-the-art algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anchorhash::fasthash;
use criterion::{black_box, criterion_group, criterion_main, Criterion};

fn bench(c: &mut Criterion) {
    c.bench_function("fasthash", |b| {
        b.iter(|| {
            fasthash(black_box(42), 0xFEED4242);
        })
    });
}

criterion_group!(benches, bench);
criterion_main!(benches);