Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Benchmark.pm: Does subroutine testing order bias results?

by jkeenan1 (Deacon)
on Jul 12, 2004 at 02:41 UTC ( [id://373536]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      sub listc {
          my $lcm     = List::Compare->new(
    ...
          my @int     = $lcm->get_intersection();
          my $intref  = $lcm->get_intersection_ref();
      }
    
  2. or download this
      Benchmark: timing 10 iterations of listc, mistc...
           listc: 91.58 usr
    ...
      Benchmark: timing 100 iterations of listc, mistc...
           listc: 731.89 usr
           mistc: 753.57 usr
    
  3. or download this
      *amistc = \&mistc;
    
    ...
      Benchmark: timing 100 iterations of amistc, listc...
          amistc: 734.79 usr
           listc: 754.06 usr
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://373536]
Approved by Old_Gray_Bear
Front-paged by davido
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found