From: Robert Dober Date: 2008-07-20T17:48:52+09:00 Subject: Re: The next number that is not in an array 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. http://pastie.org/237335 http://www.ruby-doc.org/stdlib/libdoc/benchmark/rdoc/index.html HTH Robert