Skip to content

Instantly share code, notes, and snippets.

@sanakhanlibre
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save sanakhanlibre/1ac0b7acb790b04b5562 to your computer and use it in GitHub Desktop.

Select an option

Save sanakhanlibre/1ac0b7acb790b04b5562 to your computer and use it in GitHub Desktop.
class Foo
def initialize(y)
@yak = y
end
end
ary = []
2.times { |i| ary << Foo.new(i) }
puts "ready for analysis!"
sleep
class Foo
end
ary = []
1000.times { ary << Foo.new }
puts "ready for analysis!"
sleep
class Foobar
end
hsh = {}
2.times { |i| hsh[i] = Foobar.new }
puts "ready for analysis!"
sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment