Sha256: 33ebd9ea92bda2cbbb7e8c55865cf10e49772261a2d1b37e39565606c1b8bb09
Contents?: true
Size: 344 Bytes
Versions: 18
Compression:
Stored size: 344 Bytes
Contents
require 'benchmark/ips' require 'did_you_mean' require 'did_you_mean/levenshtein' STR1, STR2 = "user_signed_in?", "user_logged_in?" Benchmark.ips do |x| x.report "enumerable" do DidYouMean::Levenshtein.before_distance STR1, STR2 end x.report "while" do DidYouMean::Levenshtein.after_distance STR1, STR2 end x.compare! end
Version data entries
18 entries across 18 versions & 2 rubygems