Sha256: 54d627b11ff44eb378e8fa6383eab1019973a1cdff0dfe286fe399fde5cb5276

Contents?: true

Size: 96 Bytes

Versions: 70

Compression:

Stored size: 96 Bytes

Contents

h = {}

10_000.times do |i|
  h[i.to_s] = nil
end

10_000.times do |i|
  h.has_key?(i.to_s)
end

Version data entries

70 entries across 70 versions & 2 rubygems

Version Path
opal-0.10.0.beta4 benchmark/bm_hash_has_key_string.rb
opal-0.10.0.beta3 benchmark/bm_hash_has_key_string.rb
opal-0.10.0.beta2 benchmark/bm_hash_has_key_string.rb
opal-0.10.0.beta1 benchmark/bm_hash_has_key_string.rb
opal-0.9.2 benchmark/bm_hash_has_key_string.rb
opal-0.9.0 benchmark/bm_hash_has_key_string.rb
opal-0.9.0.rc1 benchmark/bm_hash_has_key_string.rb
opal-0.9.0.beta2 benchmark/bm_hash_has_key_string.rb
opal-0.9.0.beta1 benchmark/bm_hash_has_key_string.rb
opal-wedge-0.9.0.dev benchmark/bm_hash_has_key_string.rb