Sha256: 57c0f6ec998460039649e1725047786c72ae606f359e1a2a2c24377cc4ca0221

Contents?: true

Size: 292 Bytes

Versions: 18

Compression:

Stored size: 292 Bytes

Contents

require 'benchmark/ips'
require 'did_you_mean'

Benchmark.ips do |x|
  x.report "before" do
    DidYouMean::Jaro.before_distance "user_signed_in?", "user_logged_in?"
  end

  x.report "after" do
    DidYouMean::Jaro.after_distance "user_signed_in?", "user_logged_in?"
  end

  x.compare!
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
did_you_mean-1.2.2 benchmark/jaro_winkler/speed.rb
did_you_mean-1.1.3 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.4 benchmark/jaro_winkler/speed.rb
did_you_mean-1.3.0 benchmark/jaro_winkler/speed.rb
did_you_mean-1.2.1 benchmark/jaro_winkler/speed.rb
did_you_mean-1.2.0 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.3 benchmark/jaro_winkler/speed.rb
did_you_mean-1.1.2 benchmark/jaro_winkler/speed.rb
ruby-compiler-0.1.1 vendor/ruby/gems/did_you_mean-1.1.0/benchmark/jaro_winkler/speed.rb
did_you_mean-1.1.0 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.2 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.1 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.0 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.0.rc1 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.0.beta3 benchmark/jaro_winkler/speed.rb
did_you_mean-1.0.0.beta2 benchmark/jaro_winkler/speed.rb
did_you_mean-0.10.0-java benchmark/jaro_winkler/speed.rb
did_you_mean-0.10.0 benchmark/jaro_winkler/speed.rb