Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1

by Tux (Canon)
on Feb 06, 2019 at 11:20 UTC ( #1229466=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    #        DO_CHECK and (Compare (\@list, $exp) or die "@list");
    #       },
        });
    
  2. or download this
    Linux 4.20.6-1-default [openSUSE Tumbleweed 20190202]  HP ZBook 15G3 C
    +ore(TM) i7-6820HQ CPU @ 2.70GHz/3480(8 cores) x86_64  15958 Mb
    
    ...
    swl2       25121/s  935%     621%    508%     390%   300%   289%      
    +236% 199%       97%       65%     32%     12%   4%   --     -13%     
    +  -24%
    tybalt89   28845/s 1088%     727%    599%     462%   359%   347%      
    +286% 243%      126%       89%     52%     29%  19%  15%       --     
    +  -13%
    Discipulus 33027/s 1261%     847%    700%     544%   426%   412%      
    +342% 293%      159%      117%     74%     48%  36%  31%      14%     
    +    --
    
  3. or download this
    Linux 4.4.165-81-default [openSUSE Leap 42.3]  HP Z420/1589 Xeon(R) CP
    +U E5-1650 0 @ 3.20GHz/3533(12 cores) x86_64  15972 Mb
    
    ...
    swl2       73079/s 1114%     634%    627%   463%     431%   364%      
    +243% 184%       93%       54%     41%     24%  21%   --      -8%     
    +  -16%
    tybalt89   79276/s 1217%     696%    689%   511%     476%   403%      
    +272% 208%      110%       67%     53%     34%  31%   8%       --     
    +   -9%
    Discipulus 86809/s 1342%     772%    764%   569%     530%   451%      
    +308% 238%      129%       83%     68%     47%  44%  19%      10%     
    +    --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2021-10-19 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (77 votes). Check out past polls.

    Notices?