Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/microsoft/damlev.git
f0e68fe078
Speedboost |
||
---|---|---|
benchmark | ||
.editorconfig | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
damlev.ts | ||
package.json | ||
test.ts | ||
tsconfig.json |
README.md
damlev
This is the fastest implementation of Damerau-Levenshtein for JavaScript, an optimization of David Hamp-Gonsalves' port.
Usage
var damlev = require('damlev');
damlev('javascript', 'yavascritp'); // => 2
Benchmarks
$ npm run bench
19,542 op/s Β» WatchBeam/damlev
3,749 op/s Β» lzrski/damerau-levenshtein
5,731 op/s Β» StefanHamminga/damerau-levenshtein-git
2,686 op/s Β» davidhampgonsalves
Suites: 1
Benches: 4
Elapsed: 55,147.08 ms