jaro_winkler 0.1.0

Fast implementation of Jaro-Winkler for comparing two strings
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 28.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.11 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • joshuaclayton/jaro_winkler
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • joshuaclayton

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

Copyright 2022 Josh Clayton. See the LICENSE.