Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Benchmark results | localizing $INPUT_RECORD_SEPARATOR vs spliting contents of file on $INPUT_RECORD_SEPARATOR

by Anonymous Monk
on Nov 06, 2012 at 14:24 UTC ( [id://1002481]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    ## spin-up hard-disk, init cache ;)
    Split(); IRS_while(); IRS_map();
    
  2. or download this
    use strict;
    use warnings;
    use Benchmark qw(cmpthese);
    ...
    IRS_map   7682/s        --      -17%      -19%
    Split     9284/s       21%        --       -3%
    IRS_while 9529/s       24%        3%        --
    
  3. or download this
               Rate       IRS_map    Split      IRS_while
    IRS_map    7682/s     --         0.83       0.81
    Split      9284/s     1.21       --         0.97
    IRS_while  9529/s     1.24       1.03       --
    
  4. or download this
    my $removed = \ scalar read_file('removed.xml'); use File::Slurp;
                 Rate   IRS_map IRS_while     Split
    IRS_map   16544/s        --      -36%      -49%
    IRS_while 25775/s       56%        --      -21%
    Split     32686/s       98%       27%        --
    
  5. or download this
               Rate       IRS_map    IRS_while  Split
    IRS_map    16544/s    --         0.64       0.51
    IRS_while  25775/s    1.56       --         0.79
    Split      32686/s    1.98       1.27       --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found