test/prof.rb in daybreak-0.2.0 vs test/prof.rb in daybreak-0.2.1
- old
+ new
@@ -2,13 +2,13 @@
require 'ruby-prof'
result = RubyProf.profile do
db = Daybreak::DB.new './t.db'
- 100000.times {|n| db[n] = n}
- db.flush!
+ 10.times {|n| db[n] = n}
+ db.flush
+ db.close
end
-
File.unlink './t.db'
printer = RubyProf::MultiPrinter.new(result)
FileUtils.mkdir('./profile') unless File.exists? './profile'
printer.print :path => './profile', :profile => 'profile'
\ No newline at end of file