Skip to content

Instantly share code, notes, and snippets.

@flaneur2020
Created August 8, 2013 11:51
Show Gist options
  • Select an option

  • Save flaneur2020/6183955 to your computer and use it in GitHub Desktop.

Select an option

Save flaneur2020/6183955 to your computer and use it in GitHub Desktop.
puts GC.generational_mode
LEVEL1 = 1000
LEVEL2 = 1000
LEVEL3 = 100
root = [[3, 4], [1, 2]]
1.upto(LEVEL1) do |i|
level1 = [1] * 3
1.upto(LEVEL2) do |j|
level2 = [level1] * 3
1.upto(LEVEL3) do |k|
level3 = [level2] * 3
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment