Skip to content

Instantly share code, notes, and snippets.

@keithrbennett
Created February 14, 2009 20:15
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 keithrbennett/64455 to your computer and use it in GitHub Desktop.
Save keithrbennett/64455 to your computer and use it in GitHub Desktop.
def num_stars(num, interval)
(num + (interval / 2)) / interval
end
1_000_000_000.times do |i|
String.new
if i % 100_000 == 0
c = ObjectSpace.each_object { }
puts '*' * num_stars(c, 10000)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment