Re: [ANNOUNCE] Test::Benchmark

2003-12-17 Thread Jim Cromie
Fergal Daly wrote: NAME Test::Benchmark - Make sure something really is faster SYNOPSIS is_faster(-10, sub {...}, sub {...}, "this is faster than that") is_faster(5, -10, sub {...}, sub {...}, "this is 5 times faster than that") is_n_times_faster(5, -10, sub {...}, sub {...}, "t

Re: [ANNOUNCE] Test::Benchmark

2003-12-17 Thread Jim Cromie
Fergal Daly wrote: On Wed, Dec 17, 2003 at 09:28:48AM -0700, Jim Cromie wrote: Hi Fergal, Id like to see a slightly different interface: is_faster( sub{}, sub{}, "1st is faster"); This would be nice but what value should I use for iterations? I suppose -1 Benchmark defaults to -3. It

Re: [ANNOUNCE] Test::Benchmark

2003-12-17 Thread Fergal Daly
On Wed, Dec 17, 2003 at 09:28:48AM -0700, Jim Cromie wrote: > Hi Fergal, > > Id like to see a slightly different interface: > >is_faster( sub{}, sub{}, "1st is faster"); This would be nice but what value should I use for iterations? I suppose -1 would be safe enough, anything that takes long