Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Benchmark.pm: Does subroutine testing order bias results?

by hossman (Prior)
on Jul 12, 2004 at 05:45 UTC ( [id://373546]=note: print w/replies, xml ) Need Help??


in reply to Benchmark.pm: Does subroutine testing order bias results?

You haven't provided enough code for us to know what exactly it is you are benchmarking. In particular, how is your data initialized?

I for one am suspicious that maybe each iteration is allocating a new set of arrays, which may be allocating more memory, which may be causing your benchmark to swap.

I'm also wondering if the initialization of your arrays is deterministic, or if their are random values in those arrays that might be making the sort done by List::Compare take longer in some instances.

  • Comment on Re: Benchmark.pm: Does subroutine testing order bias results?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://373546]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found