Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 76e30ec603
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.264 kb
require 'date'
def mem_usage
`ps -o vsz -p #{$$}`.split.last.to_i
end
n = 100000
GC.start
start_mem = mem_usage
m = (0...n).map{nil}
GC.start
array_usage = mem_usage - start_mem
m = (0...n).map{DateTime.civil}
GC.start
puts(mem_usage - start_mem - array_usage)
Jump to Line
Something went wrong with that request. Please try again.