jaro_winkler 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -7
- data/ext/jaro_winkler/extconf.rb +1 -1
- data/lib/jaro_winkler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fbc9d71de8c91f8e5d6ef78ac1216d6fa065f78
|
4
|
+
data.tar.gz: 2cc7ae02aca3a9dfde2f6ed4659cf5957a5f156a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f57f69297ca1bdc756989784eff33cff98b0f94a2450110b056dbbb841f0ac88b63e565ec1c2b9f6d20c193346a49bb3f49ac8e07829f3d5af5b36031851a151
|
7
|
+
data.tar.gz: 7e341b67320fd93177d120510183245bc2e2ba56145e5f5bbdaa0affe7142e38e8c35a3b949fda191657b5465645874fe91ff4268369ddd39185bae26b47f59f
|
data/README.md
CHANGED
@@ -60,7 +60,7 @@ string 1 | string 2 | origin | fuzzy-string-match | jaro_winkler
|
|
60
60
|
|
61
61
|
## Benchmark
|
62
62
|
|
63
|
-
- jaro_winkler (1.
|
63
|
+
- jaro_winkler (1.2.3)
|
64
64
|
- fuzzy-string-match (0.9.6)
|
65
65
|
|
66
66
|
```ruby
|
@@ -71,8 +71,8 @@ ary = [['al', 'al'], ['martha', 'marhta'], ['jones', 'johnson'], ['abcvwxyz', 'c
|
|
71
71
|
|
72
72
|
n = 100000
|
73
73
|
Benchmark.bmbm do |x|
|
74
|
-
x.report 'jaro_winkler
|
75
|
-
n.times{ ary.each{ |str1, str2| JaroWinkler.
|
74
|
+
x.report 'jaro_winkler' do
|
75
|
+
n.times{ ary.each{ |str1, str2| JaroWinkler.r_distance(str1, str2) } }
|
76
76
|
end
|
77
77
|
|
78
78
|
x.report 'fuzzystringmatch' do
|
@@ -80,12 +80,13 @@ Benchmark.bmbm do |x|
|
|
80
80
|
n.times{ ary.each{ |str1, str2| jarow.getDistance(str1, str2) } }
|
81
81
|
end
|
82
82
|
end
|
83
|
-
|
84
|
-
# user system total real
|
85
|
-
# jaro_winkler 12.480000 0.010000 12.490000 ( 12.497828)
|
86
|
-
# fuzzystringmatch 14.990000 0.010000 15.000000 ( 15.014898)
|
87
83
|
```
|
88
84
|
|
85
|
+
| user | system | total | real
|
86
|
+
--------------- | --------- | -------- | --------- | ------------
|
87
|
+
jaro_winkler | 12.750000 | 0.030000 | 12.780000 | ( 12.782842)
|
88
|
+
fuzzystringmatch | 16.240000 | 0.030000 | 16.270000 | ( 16.287380)
|
89
|
+
|
89
90
|
# Todo
|
90
91
|
|
91
92
|
- Adjusting word table (Reference to original C implementation.)
|
data/ext/jaro_winkler/extconf.rb
CHANGED
data/lib/jaro_winkler/version.rb
CHANGED