Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am vlada79 on github.
* I am vlada79 (https://keybase.io/vlada79) on keybase.
* I have a public key whose fingerprint is 6239 BD77 E936 226A 0E6F 1A8C 58DC 8A42 2D2E 9C28
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am vlada79 on github.
* I am vlada79 (https://keybase.io/vlada79) on keybase.
* I have a public key whose fingerprint is 9666 DBC5 B796 E00B 0FFA DDB6 7928 9DC5 9D0C 4F19
To claim this, I am signing this object:
@vlada79
vlada79 / gist:3874585
Created October 11, 2012 18:34
Mash vs Hash
require 'benchmark'
require 'hashie'
rep = 10_000_000
Benchmark.bm 20 do |x|
x.report 'Hashie(Mash)' do
rep.times do |index|
Hashie::Mash.new({ :name => "User", :age => 21 })
end