Sha256: 653b73f5b8b100ddc04273f22b4a363dd762a82c55e237bb4ed3fe8c689fd27b

Contents?: true

Size: 98 Bytes

Versions: 70

Compression:

Stored size: 98 Bytes

Contents

h = {}

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

1_000.times do |i|
  h.has_value?(i * 2)
end

Version data entries

70 entries across 70 versions & 2 rubygems

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