Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: bit array comparison

by rjt (Curate)
on Oct 22, 2019 at 16:32 UTC ( #11107862=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Sizes:
                    \@set1:  112 bytes,  364 bytes total
        set_to_bits(@set1):   24 bytes,   24 bytes total
      set_to_string(@set1):   44 bytes,   44 bytes total
    
  2. or download this
    Performance:
                      Rate $jac->sim sim only jaccard_string jaccard_bits
    $jac->sim      63480/s        --     -21%           -62%         -80%
    sim only       79868/s       26%       --           -53%         -75%
    jaccard_hash  168300/s      165%     111%             --         -47%
    jaccard_bits  318317/s      401%     299%            89%           --
    
  3. or download this
    use 5.026;
    use strict;
    ...
        'jaccard_bits' => sub { $r = jaccard_bits(\@set1, \@set2) },
        'jaccard_hash' => sub { $r = jaccard_hash(\@set1, \@set2) },
    });
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-04-12 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?