benchmark/memory.rb in fuzzy_match-1.1.1 vs benchmark/memory.rb in fuzzy_match-1.2.1
- old
+ new
@@ -26,29 +26,28 @@
# Blockings
# (Example) We made these by trial and error
BLOCKINGS = RemoteTable.new(:url => "file://#{File.expand_path("../../examples/bts_aircraft/blockings.csv", __FILE__)}", :headers => :first_row).map { |row| row['regexp'] }
-# Tighteners
+# Normalizers
# (Example) We made these by trial and error
-TIGHTENERS = RemoteTable.new(:url => "file://#{File.expand_path("../../examples/bts_aircraft/tighteners.csv", __FILE__)}", :headers => :first_row).map { |row| row['regexp'] }
+NORMALIZERS = RemoteTable.new(:url => "file://#{File.expand_path("../../examples/bts_aircraft/normalizers.csv", __FILE__)}", :headers => :first_row).map { |row| row['regexp'] }
# Identities
# (Example) We made these by trial and error
IDENTITIES = RemoteTable.new(:url => "file://#{File.expand_path("../../examples/bts_aircraft/identities.csv", __FILE__)}", :headers => :first_row).map { |row| row['regexp'] }
FINAL_OPTIONS = {
:read => HAYSTACK_READER,
:must_match_blocking => MUST_MATCH_BLOCKING,
- :tighteners => TIGHTENERS,
+ :normalizers => NORMALIZERS,
:identities => IDENTITIES,
:blockings => BLOCKINGS
}
Memprof.start
d = FuzzyMatch.new HAYSTACK, FINAL_OPTIONS
record = d.find('boeing 707(100)', :gather_last_result => false)
-# d.free
Memprof.stats
Memprof.stop