Project

General

Profile

Bug #2992 » test_md5.rb

phiggins (Pete Higgins), 03/21/2010 05:34 AM

 
require 'digest/md5'

test_file = "delete_me"
File.open( test_file, "w" ) {|f| f << "0" * 1000 }

puts "Pid: #{Process.pid}"
STDIN.gets

100.times do
Digest::MD5.file(test_file).digest
end

GC.start
puts "done"
STDIN.gets

require 'fileutils'
FileUtils.rm( test_file )
(1-1/2)