Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    # regindbench - which is faster, regexp for fixed text patterns or ind
    +ex()?
    ...
            Rate  index regexp
    index  370/s     --   -47%
    regexp 695/s    88%     --
    
  2. or download this
    study $text;   # added before call to cmpthese above
    
             Rate  index regexp
    index   364/s     --   -71%
    regexp 1274/s   250%     --