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

Re^2: perl 5.36 and the for_list feature - a simple speed comparison

by swl (Parson)
on Jun 21, 2022 at 22:49 UTC ( [id://11144924]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.036;
    use strict;  #  not needed but left out of habit
    ...
        return $i;
    }
    
  2. or download this
                    Rate a_pairs_alias a_pairs h_by_key h_pairmap h_each h
    +_pair_vals h_for_list h_vals a_pair_vals a_pairmap a_for_list
    a_pairs_alias 83.5/s            --     -7%     -13%      -33%   -34%  
    +      -41%       -53%   -79%        -83%      -84%       -90%
    ...
    a_pair_vals    459/s          504%    397%     330%   257%      254%  
    +      193%       155%    41%          --      -13%       -35%
    a_pairmap      527/s          594%    470%     394%   311%      306%  
    +      236%       192%    62%         15%        --       -25%
    a_for_list     705/s          828%    663%     560%   449%      444%  
    +      350%       291%   117%         54%       34%         --
    
  3. or download this
    perl -v | head -2 | tail -1
    This is perl 5, version 36, subversion 0 (v5.36.0) built for x86_64-li
    +nux
    ...
    gcc -v 2>&1 | tail -2
    Thread model: posix
    gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
    

Log In?
Username:
Password:

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

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

    No recent polls found