Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: A more elegant way to filter a nested hash? Benchmarks!

by jimpudar (Pilgrim)
on Jun 02, 2018 at 14:13 UTC ( [id://1215736]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/env perl
    
    ...
        slice      => sub { hash_slice( $t->{source},            $t->{filt
    +er} ) },
      }
    );
    
  2. or download this
    ok 1
    ok 2
    ...
    recursive  271739/s       42%       37%       13%        10%        --
    +      -39%
    delete     448430/s      134%      126%       87%        81%       65%
    +        --
    # Looks like you failed 1 test of 7.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found