Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 76e30ec603
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.203 kB
require 'date'
def mem_usage
`ps -o vsz -p #{$$}`.split.last.to_i
end
n = 50000
GC.start
GC.disable
start_mem = mem_usage
n.times{DateTime.civil(2010, 11, 21, 13, 43, 57)}
puts(mem_usage - start_mem)
Jump to Line
Something went wrong with that request. Please try again.