Sha256: 38ecddedccabae210d39f04733209ac5b65009726ea6df7618c0b701fbb03de2

Contents?: true

Size: 119 Bytes

Versions: 70

Compression:

Stored size: 119 Bytes

Contents

h = {}
a = []

10_000.times do |i|
  a[i] = Object.new
  h[a[i]] = nil
end

10_000.times do |i|
  h.has_key?(a[i])
end

Version data entries

70 entries across 70 versions & 2 rubygems

Version Path
opal-1.8.3.rc1 benchmark/bm_hash_has_key_object.rb
opal-1.8.2 benchmark/bm_hash_has_key_object.rb
opal-1.8.1 benchmark/bm_hash_has_key_object.rb
opal-1.8.0 benchmark/bm_hash_has_key_object.rb
opal-1.8.0.beta1 benchmark/bm_hash_has_key_object.rb
opal-1.7.4 benchmark/bm_hash_has_key_object.rb
opal-1.8.0.alpha1 benchmark/bm_hash_has_key_object.rb
opal-1.7.3 benchmark/bm_hash_has_key_object.rb
opal-1.7.2 benchmark/bm_hash_has_key_object.rb
opal-1.7.1 benchmark/bm_hash_has_key_object.rb
opal-1.7.0 benchmark/bm_hash_has_key_object.rb
opal-1.7.0.rc1 benchmark/bm_hash_has_key_object.rb
opal-1.6.1 benchmark/bm_hash_has_key_object.rb
opal-1.6.0 benchmark/bm_hash_has_key_object.rb
opal-1.6.0.rc1 benchmark/bm_hash_has_key_object.rb
opal-1.6.0.alpha1 benchmark/bm_hash_has_key_object.rb
opal-1.5.1 benchmark/bm_hash_has_key_object.rb
opal-1.5.0 benchmark/bm_hash_has_key_object.rb
opal-1.5.0.rc1 benchmark/bm_hash_has_key_object.rb
opal-1.4.1 benchmark/bm_hash_has_key_object.rb