Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RFC extending Benchmark.pm to facilitate CODEHASHREF

by LanX (Canon)
on Nov 25, 2013 at 22:30 UTC ( #1064322=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    sub name1 { 
    ...
            'name2' => \&name2,
         }
    )
    
  2. or download this
    {
      package CMP;
    ...
    }
    
    cmpthese (-5, pckg_subs("CMP") )
    
  3. or download this
    use strict;
    use warnings;
    ...
      }
      return $codehashref; 
    }
    
  4. or download this
    /usr/bin/perl -w /tmp/diff.pl 
    hash_grep:    *CMP::hash_grep
    ...
    hash_values_diff 148869/s        568%               --          -31%  
    +      -40%
    hash_key_diff    215078/s        866%              44%            --  
    +      -13%
    hash_grep        247455/s       1011%              66%           15%  
    +        --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1064322]
Approved by Arunbear
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-05-26 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (493 votes), past polls