Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: how to quickly tell if number is in an array

by pg (Canon)
on Oct 12, 2005 at 01:19 UTC ( [id://499335]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark qw(timethese);
    use strict;
    ...
        }
        return 0;
    }
    
  2. or download this
    Benchmark: timing 100 iterations of granfather, usual...
    granfather:  4 wallclock secs ( 3.58 usr +  0.00 sys =  3.58 CPU) @ 27
    +.95/s (n=1
    00)
         usual:  4 wallclock secs ( 4.13 usr +  0.00 sys =  4.13 CPU) @ 24
    +.24/s (n=1
    00)
    
  3. or download this
    Benchmark: timing 100 iterations of granfather, usual...
    granfather:  3 wallclock secs ( 3.58 usr +  0.00 sys =  3.58 CPU) @ 27
    +.95/s (n=1
    00)
         usual:  0 wallclock secs ( 0.00 usr +  0.00 sys =  0.00 CPU)
                (warning: too few iterations for a reliable count)
    
  4. or download this
    Benchmark: timing 100 iterations of granfather, usual...
    granfather:  4 wallclock secs ( 3.69 usr +  0.03 sys =  3.72 CPU) @ 26
    +.89/s (n=1
    00)
         usual:  2 wallclock secs ( 2.08 usr +  0.00 sys =  2.08 CPU) @ 48
    +.12/s (n=1
    00)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found