[Melbourne-pm] returning hashes and arrays, source filters considered harmful?

Toby Corkindale toby.corkindale at strategicdata.com.au
Thu Feb 18 20:08:54 PST 2010


On 19/02/10 14:55, Ryan, Martin G wrote:
> Toby Corkindale suggests;
>
>> I have edited your function to use Benchmark, which is a more
>> reliable way of benchmarking these sorts of things.
>
>> It's results:
>> byRef: 11755/s
>> byValue: 7803/s
>
>> Showing that the reference method is quite a bit faster.
>> (See attached)
>
> So is the sentence or the results arse-about?
>
> ... Or am I drunk without drinking anything?

Benchmark (in this mode) runs the code for X seconds, then reports the 
average number of times per second it run.

So the Ref method ran more iterations-per-second, indicating it's faster.


More information about the Melbourne-pm mailing list