Sha256: 1cf3d7b64c8bfd3d0b32ee319fde1e58346c9325c56891da0066daa29a57f1d5
Contents?: true
Size: 589 Bytes
Versions: 7
Compression:
Stored size: 589 Bytes
Contents
# frozen-string-literal: true require 'benchmark/ips' require 'did_you_mean/jaro_winkler' Benchmark.ips do |x| x.report "original" do DidYouMean::Jaro.distance "user_signed_in?", "user_logged_in?" end # This #proposed method is not defined. Write your own method using this # name so we can reliably run the benchmark and measure the difference. # # Alternatively, you could directly update the #distance method and remove # this completely. # # x.report "proposed" do # DidYouMean::Jaro.proposed "user_signed_in?", "user_logged_in?" # end x.compare! end
Version data entries
7 entries across 7 versions & 1 rubygems