Sha256: 35432917b09e0d656b27eb322422f447919deb0c2dce3b1582fb326c5668e2dd

Contents?: true

Size: 248 Bytes

Versions: 7

Compression:

Stored size: 248 Bytes

Contents

# frozen-string-literal: true

require 'memory_profiler'
require 'did_you_mean/levenshtein'

report = MemoryProfiler.report do
  1000.times do
    DidYouMean::Levenshtein.distance "user_signed_in?", "user_logged_in?"
  end
end

report.pretty_print

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
did_you_mean-2.0.0 benchmark/levenshtein/memory_usage.rb
did_you_mean-1.6.3 benchmark/levenshtein/memory_usage.rb
did_you_mean-1.6.2 benchmark/levenshtein/memory_usage.rb
did_you_mean-1.6.1 benchmark/levenshtein/memory_usage.rb
did_you_mean-1.5.0 benchmark/levenshtein/memory_usage.rb
did_you_mean-1.4.0 benchmark/levenshtein/memory_usage.rb
did_you_mean-1.3.1 benchmark/levenshtein/memory_usage.rb