Sha256: 64eaa5357eeb16609eaa32c71379b9c45b0d74d5a07d9fcd6128f49781ff284f

Contents?: true

Size: 240 Bytes

Versions: 18

Compression:

Stored size: 240 Bytes

Contents

require 'memory_profiler'
require 'did_you_mean/levenshtein'

str1, str2 = "user_signed_in?", "user_logged_in?"

report = MemoryProfiler.report do
  80.times do
    DidYouMean::Levenshtein.distance str1, str2
  end
end

report.pretty_print

Version data entries

18 entries across 18 versions & 2 rubygems

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