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

Re: Re: Re: Making a match

by DrManhattan (Chaplain)
on Apr 14, 2003 at 10:40 UTC ( #250254=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($hash{$x} == 1)
    {
    ...
         # faster than if(defined($hash{$x}))
         # when $hash{$x} is defined
    }
    
  2. or download this
    #!/usr/bin/perl
    
    ...
            }
    });
    
  3. or download this
    Benchmark: timing 1000000 iterations of Hash Assigned Hit Equality, Ha
    +sh Assigned Hit Truth,
        Hash Assigned Miss Equality, Hash Assigned Miss Truth, Hash Define
    +d Hit, Hash Defined Miss...
    ...
    Hash Assigned Miss Truth:  1 wallclock secs ( 1.15 usr +  0.01 sys =  
    +1.16 CPU) @ 862068.97/s (n=1000000)
    Hash Defined Hit:  1 wallclock secs ( 1.41 usr +  0.00 sys =  1.41 CPU
    +) @ 709219.86/s (n=1000000)
    Hash Defined Miss:  2 wallclock secs ( 0.95 usr +  0.00 sys =  0.95 CP
    +U) @ 1052631.58/s (n=1000000)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-08-09 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (55 votes). Check out past polls.

    Notices?