Help for this page

Select Code to Download


  1. or download this
    #              $file  $needle_bit_offset $needle_bit_length $repetitio
    +ns
    ./bitstrstr test.dat           100000000               2000           
    +10
    needle found at 100000000, expected at 100000000 in 1.6/10 = 0.16ms
    
  2. or download this
    $ for i in 16 20 30 40 60 100 200 400 1000 3000 10000; do echo $i; ./b
    +itstrstr test.dat 100000000 $i 10; done
    16
    ...
    needle found at 100000000, expected at 100000000 in 0.9/10 = 0.09ms
    10000
    needle found at 100000000, expected at 100000000 in 0.4/10 = 0.04ms