Skip to content

Instantly share code, notes, and snippets.

@jmstacey
Created October 20, 2012 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmstacey/3921407 to your computer and use it in GitHub Desktop.
Save jmstacey/3921407 to your computer and use it in GitHub Desktop.
Object Instance Stress Test
class TestObject
def initialize
@one_var = true
end
end
objects = Array.new
until objects.size >= 10_000_000 do
objects << TestObject.new
puts "#{objects.size} objects created." if objects.size % 1_000_000 == 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment