Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

"exists $hash{key}" is slower than "$hash{key}"

by swl (Parson)
on Jan 06, 2020 at 00:23 UTC ( [id://11111015]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %done;
    my @data = (1..100);
    ...
        # ...
        $done{$item}++;
    }
    
  2. or download this
    use Benchmark qw {:all};
    use 5.016;
    ...
        -3,
        \%checks
    );
    
  3. or download this
                 Rate evksvl evkrvl ecksvl eckrvl evksvg evkrvg vvksvl vvk
    +rvl vckrvl vcksvl vvksvg vvkrvg
    evksvl 10733145/s     --    -5%    -7%   -12%   -15%   -18%   -29%   -
    +31%   -32%   -33%   -41%   -48%
    ...
    vcksvl 15909705/s    48%    41%    38%    31%    27%    21%     5%    
    + 3%     1%     --   -13%   -23%
    vvksvg 18207860/s    70%    61%    57%    50%    45%    38%    21%    
    +18%    15%    14%     --   -12%
    vvkrvg 20580512/s    92%    82%    78%    69%    64%    56%    36%    
    +33%    30%    29%    13%     --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://11111015]
Approved by choroba
Front-paged by haukex
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 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found