in reply to Benchmark made easy

How about setting a $SIG{__WARN__} to increase the iterations automatically and start a rematch. A better format would be
timethese($it,{ "name1",<<code1, #code1 code1 "name2",<<code2, #code2 code2 });
or
timethese($it,{ name1=><<code1, #code1 code1 name2=><<code2, #code2 code2 });

Replies are listed 'Best First'.
Re: Re: Benchmark made easy
by tachyon (Chancellor) on Jun 16, 2001 at 02:56 UTC

    Yeah I thought about this but thought I would just keep it simple. Benchmark is easy to use, the idea was just to make it really easy for people who have not used it before.

    I agree a shorter format would be like what you use but that was not the aim. Personally I usually do it in a one liner.

    Your examples are on record now. TIMTOWTDI

    cheers

    tachyon