Skip to content

Instantly share code, notes, and snippets.

Created June 26, 2013 18:48
Show Gist options
  • Save anonymous/f21f1e4881e078338611 to your computer and use it in GitHub Desktop.
Save anonymous/f21f1e4881e078338611 to your computer and use it in GitHub Desktop.
ruby-1.9.3-p0 :001 > obj = {:hello => "world"}
=> {:hello=>"world"}
ruby-1.9.3-p0 :005 > require 'objspace'
=> true
ruby-1.9.3-p0 :006 > ObjectSpace.memsize_of(obj)
=> 184
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment