From: Michael Fellinger Date: 2008-07-20T20:15:59+09:00 Subject: Re: The next number that is not in an array On Sun, Jul 20, 2008 at 5:48 PM, Robert Dober wrote: > On Sat, Jul 19, 2008 at 7:57 PM, Bill Walton wrote: > >> Second question has to do with comments Robert Dober made like '10 times >> slower' and '50 times faster'. I'm assuming there's some benchmarking >> capability I need to learn more about. Could somebody point me? Also, is >> this capability available in IRB? > I would not use it with IRB because often you have to twist parameters. > > Unfortunately I have not kept my benchmarks that gave the above > results, but I gladly post the benchmark code > that I used to benchmark my approach with Erik's enhancements. This > with the rdoc documentation of benchmark should be enough to get you > going. Also, have a look at: http://github.com/Pistos/better-benchmark It helps you doing statistically correct benchmarking > http://pastie.org/237335 > http://www.ruby-doc.org/stdlib/libdoc/benchmark/rdoc/index.html > > HTH > Robert