List-Unique-DeterministicOrder

 view release on metacpan or  search on metacpan

etc/bench/bench.pl  view on Meta::CPAN

fs agm ahh aft tp px
gz aak amq nn cp sb
ok 1 - same order
ok 2 - same contents, list-u-det-order
ok 3 - same contents, hash ordered
1..3
           Rate      lho      lbs      lmu      ldd baseline
lho       284/s       --     -11%     -11%     -73%     -96%
lbs       318/s      12%       --      -0%     -70%     -96%
lmu       319/s      12%       0%       --     -70%     -96%
ldd      1053/s     271%     231%     230%       --     -85%
baseline 7112/s    2405%    2134%    2132%     576%       --


perl etc\bench\bench.pl 500 10000 1
First few items in each list:
aak aap aas abc abk aby
aak aap aas abc abk aby
pau bpx ism hpl blm ofb
ovt loc eug gxs gz biw
ok 1 - same order
ok 2 - same contents, list-u-det-order
ok 3 - same contents, hash ordered
1..3
           Rate      lmu      lbs      lho      ldd baseline
lmu      6.60/s       --     -30%     -62%     -81%     -98%
lbs      9.36/s      42%       --     -45%     -73%     -97%
lho      17.1/s     160%      83%       --     -51%     -95%
ldd      35.1/s     431%     274%     105%       --     -90%
baseline  368/s    5479%    3829%    2047%     950%       --


perl etc\bench\bench.pl 50 50000 1
First few items in each list:
aaan aabb aabq aabx aacz aadd
aaan aabb aabq aabx aacz aadd
ahcx ansq bsir bkss aadw apiq
bmzy ovt anya bclp aijn bqtc
ok 1 - same order
ok 2 - same contents, list-u-det-order
ok 3 - same contents, hash ordered
1..3
            Rate      lmu      lbs      lho      ldd baseline
lmu      0.353/s       --     -18%     -89%     -97%    -100%
lbs      0.428/s      21%       --     -87%     -96%    -100%
lho       3.33/s     843%     678%       --     -71%     -97%
ldd       11.6/s    3168%    2595%     247%       --     -89%
baseline   107/s   30067%   24780%    3098%     823%       --


perl etc\bench\bench.pl 5 100000 1
First few items in each list:
aaan aabb aabq aabx aacz aadd
aaan aabb aabq aabx aacz aadd
cxwa aqvg kpv bfru eiwd nbe
bmzy ovt anya bclp aijn dmmr
ok 1 - same order
ok 2 - same contents, list-u-det-order
ok 3 - same contents, hash ordered
1..3
            (warning: too few iterations for a reliable count)
                Rate      lbs      lmu      lho      ldd baseline
lbs      9.73e-002/s       --      -8%     -94%     -97%    -100%
lmu          0.105/s       8%       --     -94%     -97%    -100%
lho           1.62/s    1570%    1444%       --     -53%     -96%
ldd           3.48/s    3476%    3207%     114%       --     -92%
baseline      45.9/s   47048%   43492%    2724%    1218%       --



( run in 0.673 second using v1.01-cache-2.11-cpan-71847e10f99 )