Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by kcott (Archbishop)
on Jun 21, 2022 at 21:30 UTC ( [id://11144922]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    use v5.36;
    
    use List::Util qw /pairs pairvalues pairmap/;
    
  2. or download this
    2500050000
    2500050000
    ...
    a_pair_vals    513/s          951%    906%   243%     188%        81% 
    +    5%          --      -12%       -38%
    a_pairmap      582/s         1091%   1041%   289%     226%       105% 
    +   19%         13%        --       -30%
    a_for_list     827/s         1594%   1521%   453%     364%       191% 
    +   69%         61%       42%         --
    
  3. or download this
    $ perl -v | head -2 | tail -1
    This is perl 5, version 36, subversion 0 (v5.36.0) built for cygwin-th
    +read-multi
    
    $ uname -a
    CYGWIN_NT-10.0 titan 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-29 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found