fuzzyhash 0.2.2

Pure Rust fuzzy hash implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(test)]
extern crate test;

use fuzzyhash::FuzzyHash;
use test::Bencher;

#[bench]
fn compare_bench(b: &mut Bencher) {
    let string1 =
        "96:U57GjXnLt9co6pZwvLhJluvrszNgMFwO6MFG8SvkpjTWf:Hj3BeoEcNJ0TspgIG8SvkpjTg".to_string();
    let string2 = "96:U57GjXnLt9co6pZwvLhJluvrs1eRTxYARdEallia:Hj3BeoEcNJ0TsI9xYeia3R".to_string();

    b.iter(|| {
        FuzzyHash::compare(&string1, &string2);
    });
}