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

Re: Unexplained benchmark when using chop vs. chomp (or neither)

by davido (Cardinal)
on Mar 08, 2018 at 06:00 UTC ( [id://1210503]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     use strict;                          
     use warnings;                        
    ...
         chop    => sub {mychop(\@orig)}, 
         nada    => sub {mynada(\@orig)}, 
     };
    
  2. or download this
            Rate chomp  chop  nada
    chomp 87.8/s    --   -4%  -20%
    chop  91.6/s    4%    --  -16%
    nada   109/s   25%   20%    --
    

Log In?
Username:
Password:

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

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

    No recent polls found