Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-02-06 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?