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) },
    });