#string #distance #similarity

jaro_winkler

Fast implementation of Jaro-Winkler for comparing two strings

1 unstable release

0.1.0 Aug 14, 2023

#42 in #similarity

Download history 14/week @ 2024-03-11 1/week @ 2024-03-18 28/week @ 2024-03-25 25/week @ 2024-04-01 9/week @ 2024-05-06 6/week @ 2024-05-13 7/week @ 2024-05-20 3/week @ 2024-06-03 20/week @ 2024-06-10 23/week @ 2024-06-17 9/week @ 2024-06-24

55 downloads per month
Used in group-similar

MIT license

9KB
137 lines

jaro_winkler

A fast implementation of Jaro-Winkler distance comparing two &str values.

Usage

Add jaro_winkler to your Cargo.toml:

[dependencies]
jaro_winkler = "0.1.0"

Benchmarks

See benches/bench.rs.

Comparing different lengths results in different execution times.

On my 2021 M1 Mac, benchmark results compared against strsim and eddie:

character lengths jaro_winkler strsim eddie
9, 10 40ns 90ns 102ns
4, 5 19ns 47ns 82ns
4, 25 21ns 106ns 97ns
223, 29 498ns 2815ns 1168ns
223, 188 10147ns 25195ns 12080ns

Copyright 2022 Josh Clayton. See the LICENSE.

No runtime deps