search for: add_new_random

Displaying 1 result from an estimated 1 matches for "add_new_random".

2006 Aug 18
0
ActiveRecord Benchmarking
...DBTable.new { |entry| entry.column1 = ..some_randomly_generated_value.. entry.column2 = ..some_randomly_generated_value.. ..other columns.. entry.save end end Benchmark.bm do |reporter| reporter.report { 1000.times do DBTable.add_new_random end } end The results I see are like this user system total real 8.900000 0.383333 9.283333 (290.029662) which is the output of the Benchmark class (http://rubymanual.org/module/Benchmark) Where does the large diff...