jaro_winkler 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 036b901c1de03b193a10e71951a6c241c4fa31ef
4
- data.tar.gz: 3cbf7ec98a3d56e7f522345061f4395e18f1a7ca
3
+ metadata.gz: 0fbc9d71de8c91f8e5d6ef78ac1216d6fa065f78
4
+ data.tar.gz: 2cc7ae02aca3a9dfde2f6ed4659cf5957a5f156a
5
5
  SHA512:
6
- metadata.gz: 1fa3be807f2cac992dc419df83267ab73d8924d32b1f341cab9d6adfcf31211fd5a89b5b2badb6fe36c78617ccf1524d4f6d9fa785ba50c3ab46481d0033a14f
7
- data.tar.gz: 54682556479a596049b1f927dd546cfccefb61c0db6ce0f9ae4fec1790780839910ffd7985ec8dccb5f8ed5ce8c1a36498202841bf5d1d7485b1bdc985dd8cdb
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.0.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 ' do
75
- n.times{ ary.each{ |str1, str2| JaroWinkler.distance(str1, str2) } }
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.)
@@ -1,3 +1,3 @@
1
1
  require "mkmf"
2
2
 
3
- create_makefile("jaro_winkler")
3
+ create_makefile("jaro_winkler/jaro_winkler")
@@ -1,3 +1,3 @@
1
1
  module JaroWinkler
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jaro_winkler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jian Weihang