Show
Ignore:
Timestamp:
09/19/08 07:16:36 (3 months ago)
Author:
karpet
Message:

yank words.c in favor of tokenizer.c -- benchmarking shows tokenizer.c is 20% faster for ascii and about the same for utf-8

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/t/001-wordcount.t

    r2150 r2158  
    5050sub words { 
    5151    my $file = shift; 
    52     my $o = join( ' ', `./swish_lint -t test_docs/$file` ); 
     52    my $o = join( ' ', `./swish_lint test_docs/$file` ); 
    5353    my ($count) = ( $o =~ m/nwords: (\d+)/ ); 
    5454    return $count || 0; 
     
    5757sub fromstdin { 
    5858    my $file = shift; 
    59     my $o = join( ' ', `./swish_lint -t - < test_stdin/$file` ); 
     59    my $o = join( ' ', `./swish_lint - < test_stdin/$file` ); 
    6060    my ($count) = ( $o =~ m/total words: (\d+)/ ); 
    6161    return $count || 0;