Help for this page

Select Code to Download


  1. or download this
    use Time::HiRes qw[ time ];
     
    ...
    $start=time;
    print "Index: ", index $str , "X${pattern}";
    printf "\t took %.3f sec\n",time-$start;
    
  2. or download this
    Length: 52000001
     
    ...
         took 0.165 sec
    Index: 26000000
         took 0.094 sec