Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: bit array comparison

by rjt (Curate)
on Oct 22, 2019 at 16:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11107862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found